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
Generate distinct id for dyads in groups in long formatDear Statalist. I have a dataset of dyads in groups in long format. I need to generate a variable "…
How to generate percentage values in a 3 way frequency table?Dear Friends; I am trying to work out my descriptive tables where I have to obtain a table of corre…
egen rowtotal with missing valuesHello, My code is this: Code: egen rm=rowmiss( var1- var10) . . egen Audit=rowtotal( var1- var…
seemingly unrelated regressionHello every one I have a problem with SUER model i ran these commands HTML Code: logistic Fraud …
How to add names to points on a spatial graph using spmap.Dear all, I have managed to plot the spatial boundaries on the map and the locations of different p…
Subscribe to:
Post Comments (Atom)
0 Response to table creation after foreach and selecting variables
Post a Comment