I am trying to analyse the change in wage differentials between men and women in the Netherlands, using OSA 1990 and 2010.
Based on the model proposed by Chernozhukov, V., I. Fernández-Val, and B. Melly (2013), I want to do a counterfactual analysis based on a distribution regression.
I converted the variables gender (female=1), marital status(married or living together =1), country of origin (dutch = 1), education (high education=1) and age (older than 38=1) into dummy variables.
However, when executing the counterfactual command in Stata 17 as follows:
counterfactual log_income marital origin education old group(gen) method(logit)
I get the following error:
factor-variable and time-series operators not allowed (101)
Can somebody help me solving this problem or proposing a different approach?
Thanks in advance!
Related Posts with Counterfactual decomposition in Stata
Problems trying to estimate a dose response function (doseresponse2)Hi all. I have a panel dataset with socio-economic and political information on Brazilian municipali…
Error with rename using local macrosI importing many excel files with long variables names and lots of space. The truncated variable nam…
How to calculate the frequency of one variable occurring in the other?Hello everyone, I want to calculate the percentage of migrants in each district. I tried the codes …
Aggregating monthly time series data into a yearly time series, and calculating the product of probabilityHello all, I would like to calculate the product of probabilities of annual coup risk based on the…
Additive interaction with conditional logistic regressionDear Statalist, I am analyzing data from a case-control study using conditional logistic regression…
Subscribe to:
Post Comments (Atom)
0 Response to Counterfactual decomposition in Stata
Post a Comment