hi my data goes like this:
var1 var2
10000 a
10000 b
10000 c
10001 a
10001 b
i want my data to look like this:
var1 a b c
10000 1 1 1
10001 0 1 0
please help
Related Posts with existing variable values as new variables
Insignificant direct effect and significant indirect effect with -ldecomp- command (Mediating analysis)Hello! My name is Josep Maria Caroz and I am doing a research paper about the relationship between e…
Plot predicted probability for dummies independent variableHi, I am using logistic regression analysis to test the effect of marital, employment and education…
Scatterplots or sepscatterHello statalist I have a question regarding scatterplots: I would like to have a scatterplot with c…
Generating the average of the last 3 observed values of a variable in a panel dataDear Statalisters, I have a panel dataset and I'm struggling to generate the averages of the last 3…
Conditional logistic regression analysis.I am doing a prediction model with conditional logistic regression. My odds ratios are greater than …
Subscribe to:
Post Comments (Atom)
0 Response to existing variable values as new variables
Post a Comment