I get an error message that my j variable is not present but it is.
. reshape wide *, i(quest_number) j(year)
(note: j = 14 15)
variable year not found
r(111);
. describe year
storage display value
variable name type format label variable label
---------------------------------------------------------------------------------------------
year byte %9.0g year
. tab year, missing
year | Freq. Percent Cum.
------------+-----------------------------------
14 | 774 50.00 50.00
15 | 774 50.00 100.00
------------+-----------------------------------
Total | 1,548 100.00
Can someone tell me why?
Related Posts with reshape wide not recognizing j variable
Creating a Vector with Missing DataI am currently working on two problems: The first is regarding how I could convert an existing vari…
Multilevel Ordered Logistic Regression (meologit)Dear Statalist, I have data on individual outcomes where the individual is a member of a subgroup (…
How to simply add and divide?Dear Statalist users, I want to calculate a ratio by simply adding two variables, and then dividing…
How to reduce the size of large data files in Stata? Hi, I am working on high-frequency datasets. One-month Stata data file comes to around 4 GB (4 mil…
How to realize the functions like (gen sum) and (egen sum) for string variables by group?In the sample data, B is what I want to get from A (something like egen sum). I also want to genarat…
Subscribe to:
Post Comments (Atom)
0 Response to reshape wide not recognizing j variable
Post a Comment