Hello,
I have one of the variables G1 which has values from 1 to 17.
Then I want to make a loop as below,but it didn't work out.
Anyone can help what is the problem? thanks in advance.
foreach i in G1 {
sum sw20h if G1==`i'
global Ng`i'=r(sum)
}
Related Posts with making loop with the values within the variable
Heteroscedasticity and auto correlation in dummy variablesi am calculating CSSDt and Rmt from a cross section data .I calculated the Q1 and Q3 from Rmt to sho…
Issue with predictnlDear All, I am going through the paper by Karaka-Mandic, Norton and Down (2012) "Interaction terms …
Factor variable and menlDear Statalist User, In a bioassay study I have four treatment groups denoted by A, B, C, D with 10…
create Adjacency matrix nwcommandsHi, thank you very much for the incredible nwcommands and thank you very much in advance for your he…
Blanks in polychoric matrixHi, does any one know the reason why the polychoric matrix often include blank values? Why is the th…
Subscribe to:
Post Comments (Atom)
0 Response to making loop with the values within the variable
Post a Comment