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
Problem with exporter-importer dataset (from Cepii's TRADHIST database)Good morning, I am working with TRADHIST data on Stata 14, which collects data on bilateral trade b…
Weighted Geometric Mean-Cross-Sectional DatasetDear Scholars, I have household expenditure datasets and I am using Quadratic AIDS model to analyze…
Drop all observations of a company if it does not meet the requirement at one point in timeHello, I am new to STATA and run into a problem with my dataset which contains companies stock info…
twostepweakiv with panel dataHello, I am running a GMM model using a continuously updated estimator on panel data. My main comman…
Reshaping after matching firms with -rangejoin-Hi I am aware there are other posts around using the -rangejoin- command and which discuss reshaping…
Subscribe to:
Post Comments (Atom)
0 Response to existing variable values as new variables
Post a Comment