Hello!
I am new to STATA, so this is definitely a question regarding user error, and may seem trivial.
I want to group together several variables, and only include ID:s if the have a value in each of those variables. In other words I'm trying to make an exclusion of ID:s that are missing data in any of the variables.
I have tried to do this in several ways, for example:
gen group =1 if varname1 <. & varname2 <. & varname3 <.
Have a nice day!
//Lars
I am new to STATA, so this is definitely a question regarding user error, and may seem trivial.
I want to group together several variables, and only include ID:s if the have a value in each of those variables. In other words I'm trying to make an exclusion of ID:s that are missing data in any of the variables.
I have tried to do this in several ways, for example:
gen group =1 if varname1 <. & varname2 <. & varname3 <.
Have a nice day!
//Lars
Comment