Hello,
I am having issues with the reshape command. I am running Stata 15.1 on Windows.
My dataset is from the NCES educational database. The columns are district names, district states, and demographic variables (G1HM9899 - Grade 1 Hispanic Males 98-99, etc).
I would like to reshape this to emphasize district and year.
My command is: reshape long charter G otherdemographicvariables i(district) j(year)
Firstly, charter is a dummy variable if the district is a charter district or not. G includes all Grades and their demographic variables and year (since those variables begin with G, I think the command should capture it).
I would like to reshape this, but it is says r(198), option i() required.
I don't understand, since i will be the district name and j would be the year in place. Thanks.
I am having issues with the reshape command. I am running Stata 15.1 on Windows.
My dataset is from the NCES educational database. The columns are district names, district states, and demographic variables (G1HM9899 - Grade 1 Hispanic Males 98-99, etc).
I would like to reshape this to emphasize district and year.
My command is: reshape long charter G otherdemographicvariables i(district) j(year)
Firstly, charter is a dummy variable if the district is a charter district or not. G includes all Grades and their demographic variables and year (since those variables begin with G, I think the command should capture it).
I would like to reshape this, but it is says r(198), option i() required.
I don't understand, since i will be the district name and j would be the year in place. Thanks.
Comment