Hi all,
I wanr to create variables in a forval numeric forloop
forval i = -7(1)7{
gen dummy_`i' = 1 if dif>`i'-1 & dif<`i'+1
}
however this syntax is invalid. What can I do?
Thank you for your help!!
Related Posts with creating variables in forval numeric forloop
Reshape a single polytomous responses in a long formGood day everyone in the house, please I need someone to help me on how I can reshape a single polyt…
Cd with local and an other do fileHi, I'm trying to use local in my CD but it doesn't work. I can do this : Code: local directory="…
Sorry for the double post, there was a bugSorry for the double post, there was a bug …
Importing Json-formatted data from a .txt file into stataDear Statausers, I am facing the following: I have received a .txt file containing data in json for…
Sample size calculation for repeated measures using ancovaHi, I am looking to repeat the power calculation found in this protocol (sample size text attached)…
Subscribe to:
Post Comments (Atom)
0 Response to creating variables in forval numeric forloop
Post a Comment