Hello! I am a first time poster so I apologize for any mistakes or lack of etiquette. I am new to STATA so the FAQ did not make too much sense to me but I will try my best!
I have tried the following lines:
forvalues `i = 2011(1)2023{
2. egen y‘`i’ = rowtotal(y‘`i’_*)
3. replace y‘`i’=y‘`i’/12
4. drop y‘`i’_*
5. }
As well as
. forvalues i = 2011(1)2023{
2. egen y`‘i’ = rowtotal(y`‘i’_*)
3. replace y‘`i’=y‘`i’/12
4. drop y‘`i’_*
5. }
As well as
. forvalues i = 2011(1)2023{
2. egen y‘`i’ = rowtotal(y‘`i’_*)
3. replace y‘`i’=y‘`i’/12
4. drop y‘`i’_*
5. }
And I am getting
"invalid syntax" r(198);
in response to all them.
I would appreciate any help and to provide any extra information needed!
Thank you!
I have tried the following lines:
forvalues `i = 2011(1)2023{
2. egen y‘`i’ = rowtotal(y‘`i’_*)
3. replace y‘`i’=y‘`i’/12
4. drop y‘`i’_*
5. }
As well as
. forvalues i = 2011(1)2023{
2. egen y`‘i’ = rowtotal(y`‘i’_*)
3. replace y‘`i’=y‘`i’/12
4. drop y‘`i’_*
5. }
As well as
. forvalues i = 2011(1)2023{
2. egen y‘`i’ = rowtotal(y‘`i’_*)
3. replace y‘`i’=y‘`i’/12
4. drop y‘`i’_*
5. }
And I am getting
"invalid syntax" r(198);
in response to all them.
I would appreciate any help and to provide any extra information needed!
Thank you!
Comment