Hello,
I am trying to compute the probability of being treated using a continuous by continuous interaction Logit model in Stata. I have three key variables:
Dependent variable = target (1 = targeted company; 0 = control company, not targeted)
Main predictor variable = company_size (size of company)
Interaction variable = activist_age (age of social activist)
Both the predictor and interaction variables are continuous.
In Stata, I input Logit code:
The problem is Stata outputs an error because "the outcome does not vary". This is because I only have activist_age data for the targeted firms; the control firms of course don't have this data because no activist targets them.
How do I solve this problem? Is there some way I should break the targeted firms into strata based on activist_age and compare the probability of being targeted just among targeted firms? Any advice on how to move forward would be greatly appreciated. Any other help is welcome as I am fairly new to Logit models.
Thank you!
Roger
I am trying to compute the probability of being treated using a continuous by continuous interaction Logit model in Stata. I have three key variables:
Dependent variable = target (1 = targeted company; 0 = control company, not targeted)
Main predictor variable = company_size (size of company)
Interaction variable = activist_age (age of social activist)
Both the predictor and interaction variables are continuous.
In Stata, I input Logit code:
Code:
logit target c.company_size##c.activist_age i.sic_industry_code i.year
How do I solve this problem? Is there some way I should break the targeted firms into strata based on activist_age and compare the probability of being targeted just among targeted firms? Any advice on how to move forward would be greatly appreciated. Any other help is welcome as I am fairly new to Logit models.
Thank you!
Roger
Comment