The variables are biological_timeA, biological_timeB, biological_timeC, adopted_timeA, adopted_timeB, adopted_timeC, step_timeA, step_timeB, and step_timeC. Use a loop to generate a new indicator variable for each time point that takes the value of 1 if the participant had any children living with them and 0 otherwise.
How do I go about this?
Related Posts with Stucked with generating a loop of dummy variables using an indicator variable
GMM, xtabond2: negative and insignificant coefficientsHello Statalister, I have been recently dealing with my model for the dissertation. I am an absolut…
Time series graph for more than one observation for each time point dataDear Altruistic, I have data set in following format Code: * Example generated by -dataex-. To ins…
How to see size of current data in Stata 16I just upgraded from Stata 15 to Stata 16 and very excited about it. However, I'm wondering why the …
Align boxplot and line graphDear Statalisters, I'm trying to combine a line graph with a boxplot in one row. The axes have the …
VIF interpretationHi everyone, Using "vif" post command after running multiple regression, I got the following results…
Subscribe to:
Post Comments (Atom)
0 Response to Stucked with generating a loop of dummy variables using an indicator variable
Post a Comment