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
Maximum Likelihood Estimation cannot find starting values in StataI am attempting to use Deal or No Deal Data to test for risk aversion parameters using Maximum Likel…
Multiple variables grouped by one variable, on one bar graph showing median and IQRHi, I am trying to create a similar graph as below on STATA, displaying different independent varia…
Panel Var IRF standard deviation reportDear experts, I used pvar syntax by Abrigo and Love(2015) because of unbalanced panel data. Fore m…
Regression analysis to detect herd behaviorDear all, I am new to this forum and also new to Stata. Therefore, I would like to apologize for an…
Determine number of unique values groupwiseHey community, I have grouped my observations by the variable companyid so that there are multiple …
Subscribe to:
Post Comments (Atom)
0 Response to existing variable values as new variables
Post a Comment