Hello everybody and thanks in advance.
I'm wondering how to create tables in Stata 16 after a loop via foreach command.
Say...
foreach var of varlist co1 sv1 ef_av1 {
spearman lvls_sp1 `var'
}
In this example I do a spearman correlation of several variables versus a single variable and I want as output a table with 3 columns: variable name, z and p values.
I'm not sure if this post is a duplicate of other posts but I didn't find the answer to my question.
Thanks again.
Gianfranco
Related Posts with table creation after foreach and selecting variables
Multilevel Model with Individual fixed effectsHi Statalisters, I have a panel dataset with around 30,000 individuals observed for four years all …
Time fixed effects - once againHi guys, writing my master thesis I am having lots of issues implementing time effects (standard in…
panel data xtabs first and last occurrenceHello, I am new to the Stata community and was hoping for some help with panel data analysis. I hav…
Merging multiple cross tabulations that use a common grouped variableGreetings. I'm trying to merge 4-5 cross tabulations, that use a common group variable as one of the…
Converting a variable to a quarterly dataHey there, I imported data which was formatted like Q12007 and then reshaped from wide to long, eli…
Subscribe to:
Post Comments (Atom)
0 Response to table creation after foreach and selecting variables
Post a Comment