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
Use list of variables in dta file to rename variable in other datasetHi, In the current project I'm working on, I keep updating a list of variables. I would like to use…
Exporting Logistic Regression output table - command using 'svyset'Dear experts, I am running logistic regression model using 'svyset' command in Stata 15. I am unable…
Find observations with same content for one variableI would like to find out which observations have the same content for one variable. Is there a comma…
I need to log a variable, but some of the observations are negative. How to solve this problem?Hi, I'm using Stata/SE 16.1. My dataset is a panel data and contains the financial statement and ke…
local macro to be used for numlist?Dear All, Task: Variable X has a lot of missing values, suppose the first three values are missing,…
Subscribe to:
Post Comments (Atom)
0 Response to Creating Weights
Post a Comment