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
Implementation of a single autoregressive term in a fixed effects modelHey to everyone, as I am facing a problem of a wrongly build autoregressive model I tried to change…
Autocorrelation and Heteroskedasticity issuehi, i have panel data of 22 cities with 17 years, and i used log transformations for my variables in…
Interpretation of marginal effects in churdle model with a log-transformed dependent variableHey, I run a double hurdle model (more specifically, the 'churdle' command) and use a probit model …
transition matrices in bar chartsHello, I want to convert my transition matrix (see data/code below) into a "transition bar chart" a…
Calculating average years of education across different occupation codesHello everyone, I have a question that I hope you guys can help me. Below is an example of a panel …
Subscribe to:
Post Comments (Atom)
0 Response to How to run a regression with missing value for one group
Post a Comment