Say I have the following data set:
id var1
1 a
1 b
1 c
2 a
2 d
3 a
Is there a way to collapse this to the following?
id var1
1 a; b; c
2 a; d
3 a
Related Posts with Collapse all values of one string variable to one cell per group
Problem in generating simple mean and graphDear all, It might be a silly a question but I've a simple problem in generating a mean variable. I…
Adding new vce options to existing command?Dear Statalist, I am currently working on a project that incorporates Regression Discontinuity in T…
Very large t-statisticsDear all, I am performing cluster robust WLS and fixed effects models on a relatively small dataset…
Ommited because of collinearity even though 'collin' and 'vif' commands show no correlation.Dear all, I have a challenge that I cannot understand or deal with. When I run my regression I get a…
No observation error in areg using variables within a rangeHello there, have created three variables represing three classes (discrete) of travel times, naley…
Subscribe to:
Post Comments (Atom)
0 Response to Collapse all values of one string variable to one cell per group
Post a Comment