I am trying to create a weighted wage, using employment and wage. I tried the following command, but I got a "type mismatch error"
gen weight_for_increase=p10_binned * emp if min_wage_increase == 1
both p10_binned and emp are numeric variables. What would be the correct way to create this weight?
Related Posts with Creating Weights
Weighted combined score predicting outcomeI have this quite open question as I have a large longitudinal dataset with multiple options. Howeve…
Problems with the use autocompletion in do-filesSome things I recognized using autocompletion in Stata 16.0: the comand "mvdecode" does not appear …
Stereotype logistic regression vs. Multinomial and Ordinal Logistic RegressionWhat are the ways to compare the fit of multinomial, ordinal, and stereotype logistic regression to …
10-year probabilities after stcrregDear all, I would like to calculate the 10-year risk of stroke for each individual in my dataset, g…
create a 2-way summary tableHi all My data include - id and industry are the firm id and the industry of the firm - first_cer…
Subscribe to:
Post Comments (Atom)
0 Response to Creating Weights
Post a Comment