Hi everyone,
I am trying to run a reshape long command with 10 variables specified as i (below command). Interestingly when the number of variables specified as i exceeds 10 variables, stata does not reshape the variable generating an error: "too many variables specified." When the number of vars in i is less than 10 then the command works. Is there any way to fix this. I am using stata 16. Thanks.
reshape long spousal_CG@ r@073 r@074 r@076 CR@ cogfunction@ r@082 r@223 r@129 r@216 r@001 r@053 r@adla r@iadla r@iwstat r@agey_m r@cesd r@shlt r@mstat h@itot r@jstres r@conde r@bmi r@smoken r@smokev r@drinkd r@nhmliv r@wtresp, i(hhidpn rabyear radyear ragender rahispan raracem raedyrs raeduc raehsamp raestrat OPN OPN_SP) j(wave)
Related Posts with Is "reshape long" limited by the number of "i"s: too many variables specified
xtmixed command combined with by() or bysort()Dear Statalists, Is it possible to run xtmixed command by different criteria? For example, I have a…
Global macro with adjusted logistic regression with factor variablesI want to use global macro in crude and adjusted logistic regression. webuse bpwide generate bp = (…
Isolating highest value of a variable using collapse command I am working with a dataset of national election data from 2020. It includes the total votes receiv…
From SAS to Stata: sampling weight for nonlinear models (menl)?Hello all, I am trying to replicate code from SAS to Stata, and I am also struggling with specifyin…
Fastest code for finding unique valuesI have a dataset of one million observation and have around 200 variables. I am struggling with find…
Subscribe to:
Post Comments (Atom)
0 Response to Is "reshape long" limited by the number of "i"s: too many variables specified
Post a Comment