Hi Statalist
This probably has a very simple solution but I am struggling to figure it out.
For a panel dataset, we can readily identify time-invariant & time-varying variables by -xtsum- and the time-invariant variables are those with a Within standard deviation of 0.
But is there a way to tag/identify those variables that are time-varying or invariant in such a way this identification can be used for later procedures? For example, suppose I want to -reshape wide- and instead of typing out -reshape wide <time-varying1> <time-varying2> <time-varying3>, i(id) j(time)- (there are >100 variables altogether) I can simply use the variables already tagged as time-varying.
The closest information I found is https://www.stata.com/support/faqs/d...ions-in-group/ but my question differs in that I am not looking to list observations within a column but to identify the whole column.
Thanks.
Related Posts with Tag time-invariant & time-varying variables in panel
Margin Graphs after probitArray Dear Stata community, Greetings!!! I wish to plot the margins graphs as shown above, where th…
Use Output from LCA with Penn State PluginDear Statalisters, i am fairly inexperienced in Stata and i currently try to run some latent class …
Johnson Neyman TechniqueDear Stata Community, I hope that I can describe my concern as accurately as possible. I have calcul…
How to replace the previous value of categorical variable based on the current valueHi, as you can see the data, the variable group has many missing values for all pre-2004 data. I wan…
Graphs after margins with interaction and covariatesHi, I am hopeful that someone can help me. I am having trouble understanding how to plot a signifi…
Subscribe to:
Post Comments (Atom)
0 Response to Tag time-invariant & time-varying variables in panel
Post a Comment