PLEASE HELP...
I have 100+ observations. I have the following 7 variables but for each observation I have data for only 4 of the variables. I don't want to eliminate any data, I just want to tell STATA that if the value in Avg(period 0, section 1)t=0 is missing then it should replace that missing value with the value in the variable below it i.e. Avg(period 0, section 1)t=-1,
if the value in Avg(period 1, section 1)t=0 is missing then it should replace that missing value with the value in the variable below it i.e. Avg(period 1, section 1)t=-1,
if the value in Avg(period 1, section 2)t=0 is missing then it should replace that missing value with the value in the variable below it i.e. Avg(period 1, section 2)t=-1,
Avg(period 0, section 0)t=0 Avg(period 0, section 1)t=0 Avg(period 1, section 1)t=0 Avg(period 1, section 2)t=0
Avg(period 0, section 1)t=-1 Avg(period 1, section 1)t=-1 Avg(period 1, section 2)t=-1
How can I tell STATA to do that so that it would not think that I have missing data and would allow me to conduct my regression?
I am hoping to be able to get a coefficient for each of the 7 variables, and a standard error value. Would that be possible if I bunged in a command that tells STATA to replace missing values in one variables with values from another variable?
I would be so incredibly grateful if any of you can shed any light on this dilemma.
I have 100+ observations. I have the following 7 variables but for each observation I have data for only 4 of the variables. I don't want to eliminate any data, I just want to tell STATA that if the value in Avg(period 0, section 1)t=0 is missing then it should replace that missing value with the value in the variable below it i.e. Avg(period 0, section 1)t=-1,
if the value in Avg(period 1, section 1)t=0 is missing then it should replace that missing value with the value in the variable below it i.e. Avg(period 1, section 1)t=-1,
if the value in Avg(period 1, section 2)t=0 is missing then it should replace that missing value with the value in the variable below it i.e. Avg(period 1, section 2)t=-1,
Avg(period 0, section 0)t=0 Avg(period 0, section 1)t=0 Avg(period 1, section 1)t=0 Avg(period 1, section 2)t=0
Avg(period 0, section 1)t=-1 Avg(period 1, section 1)t=-1 Avg(period 1, section 2)t=-1
How can I tell STATA to do that so that it would not think that I have missing data and would allow me to conduct my regression?
I am hoping to be able to get a coefficient for each of the 7 variables, and a standard error value. Would that be possible if I bunged in a command that tells STATA to replace missing values in one variables with values from another variable?
I would be so incredibly grateful if any of you can shed any light on this dilemma.
Comment