Billy Buchanan Currently Director of Data, Research, and Accountability Fayette County Public Schools Formerly Data Scientist @ Minneapolis Public Schools
. // Load the same data into Stata in a key-value pair structure
. jsonio kv, file("~/Desktop/waypointsResponse.json") ///
nourl elem("(legs_[0-9]/((start)|(end))_location/((lat)|(lng)))")
key | value |
---|---|
/routes_1/legs_1/end_location/lat | 42.378175 |
/routes_1/legs_1/end_location/lng | -71.060226 |
/routes_1/legs_1/start_location/lat | 42.359824 |
/routes_1/legs_1/start_location/lng | -71.059812 |
/routes_1/legs_2/end_location/lat | 42.442609 |
/routes_1/legs_2/end_location/lng | -71.229336 |
/routes_1/legs_2/start_location/lat | 42.378175 |
/routes_1/legs_2/start_location/lng | -71.060226 |
... |
. // Load the same data into Stata in a key-value pair structure
. jsonio rv, file("~/Desktop/waypointsResponse.json") ob(1) ///
nourl elem("(legs_[0-9]/((start)|(end))_location/((lat)|(lng)))")
Variable Name | storage type | display format | variable label | |
---|---|---|---|---|
jsonvar1 | double | %10.0g | /routes_1/legs_1/end_location/lat | |
jsonvar2 | double | %10.0g | /routes_1/legs_1/end_location/lng | |
jsonvar3 | double | %10.0g | /routes_1/legs_1/start_location/lat | |
jsonvar4 | double | %10.0g | /routes_1/legs_1/start_location/lng | |
jsonvar5 | double | %10.0g | /routes_1/legs_2/end_location/lat | |
jsonvar6 | double | %10.0g | /routes_1/legs_2/end_location/lng | |
jsonvar7 | double | %10.0g | /routes_1/legs_2/start_location/lat | |
jsonvar8 | double | %10.0g | /routes_1/legs_2/start_location/lng | |
... |
Close to lossless export of data and meta data is possible with jsonio
"data" : [{
...,
{
"mpg" : 17.0,
"price" : 11995.0,
"headroom" : 2.5,
"rep78" : 5.0,
"length" : 193.0,
"weight" : 3170.0,
"displacement" : 163.0,
"turn" : 37.0,
"trunk" : 14.0,
"make" : "Volvo 260",
"gear_ratio" : 2.9800000190734863,
"foreign" : 1.0
}, ... }],
"variableTypeIsString" : {
"mpg" : false,
"price" : false,
"headroom" : false,
"rep78" : false,
"length" : false,
"weight" : false,
"displacement" : false,
"turn" : false,
"trunk" : false,
"make" : true,
"gear_ratio" : false,
"foreign" : false
},
"variableNames" : [ "make", "price", "mpg", "rep78", "headroom", "trunk", "weight", "length", "turn", "displacement", "gear_ratio", "foreign" ],
"variableLabels" : {
"mpg" : "Mileage (mpg)",
"price" : "Price",
"headroom" : "Headroom (in.)",
"rep78" : "Repair Record 1978",
"length" : "Length (in.)",
"weight" : "Weight (lbs.)",
"displacement" : "Displacement (cu. in.)",
"turn" : "Turn Circle (ft.) ",
"trunk" : "Trunk space (cu. ft.)",
"make" : "Make and Model",
"gear_ratio" : "Gear Ratio",
"foreign" : "Car type"
},
"valueLabelNames" : {
"foreign" : "origin"
},
"valueLabels" : {
"foreign" : {
"0" : "Domestic",
"1" : "Foreign"
}
}, ...
Use jsonio to serialize data and write your HTML and JavaScript to create static graphs for the web
or to create slightly interactive graphs
or to emphasize the exploratory in EDA
You can create Mata functions or Stata programs that generate the HTML and JavaScript for users to create simpler graphs directly in Stata
And can also make graphs that are a bit more complex
Oh...and by the way...
If you or anyone you know is interested in doing research work education :::cough::: economics of education/psychometrics/program evaluation types :::cough::: feel free to grab me at some point during the conference to tell me or email me: Billy.Buchanan@fayette.kyschools.us
You can also check The Fayette County Public School's Job Postings to check and see if the positions are up/posted.