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
Trend of proportions of people on a medication over 10 yearsI have 10 years worth of data (surveillance data so its weighted). I want to assess the trend of the…
GRAVITY EQUATION: issues with commands for xtpoisson and xntbreg including FE'sBest Statalisters I am trying to estimate a gravity model for trade effects of trade preference sch…
Data type/precision -import dbf-I'd like advice on double vs. float precision on some data values obtained via import of a dbf file.…
opplot - a new command to plot binary outcomes in cluster survey datasetsAt the 2018 US Stata Conference, Mary Prier gave an overview of a new command to make an organ pipe …
reshape a large household surveyHi statalister, I would like to reshape "long" a large dataset of 8000 households in which every ho…
Subscribe to:
Post Comments (Atom)
0 Response to table creation after foreach and selecting variables
Post a Comment