I want to run a simple regression with one variable that is available only for female.
I have four independent variables: age, weight, height, menstrual_cycle. The dependent variable is the patient's health (measured by the times of visiting clinic).
Approach 1:
As the variable menstrual_cycle is available for female only, I delete observations for male respondent.
keep if (female == 1)
reg health age weight height menstrual_cycle
Approach 2:
However, my friend said that I should use as many observations as possible. He recommends me to impute menstrual_cycle = 0 for male, and include a dummy variable gender in the regression.
The regression becomes:
reg health age weight height menstrual_cycle gender
Does sample selection bias exist if I run regression using Approach 1? Thank you.
Related Posts with How to run a regression with missing value for one group
Merging two datasetsHi all, Im new to STATA so I apologise if this is a silly question. I am trying to combine two data…
Question about Stata close button on MacBook?Dear all, My Stata version is Stata 17 (MP 4) and on MacBook Air.I find that the close button's colo…
How to perform the pre-trend test in did_imputation?From reading the help file of did_imputation, I saw that pretrends(integer): if some value k>…
How to retrieve all the coefficient of independent variables of did_imputation package?Hi all, Normally, in a research paper, we need to present a table of coefficients of all independen…
How many pre-treatment periods we should test for paralell trend in the case of daily data?In a difference-in-differences setting, if we deal with yearly data, we normally test the parallel t…
Subscribe to:
Post Comments (Atom)
0 Response to How to run a regression with missing value for one group
Post a Comment