Hi, I have observations of building tenants which has a string variable recording the floors they occupy delimited by commas (e.g. ‘GRND,1st,MEZZ,4-6’), and for each of these observations I would like to convert this into separate dummy variables for each floor occupied (i.e. in the case above, create dummy variables coded ‘1’ for GRND, 1, MEZZ, 4, 5, and 6). Does anyone know how I might code this?
Cheers
Related Posts with Convert composite string variable delimited by commas into separate dummy variables
spmap lines not correctly sortedI have an odd problem with spmap. In some circumstances using the line() option the lines are not co…
Heckman correction for one of the variables in an indexHi, I'd like to estimate treatment effects on an index variable constructed using three variables. …
Dotplot with multiple variablesHello, I am trying to create a way to display a data index I have created for coral rugosity (data …
Interpretation of coefficients in LPMDear all, Perhaps a very basic question, but all the online resources I have looked at so far give …
Error r(2000), No Observation Hello Community, I am trying to run the Probit command with many DVs for different years, I keep r…
Subscribe to:
Post Comments (Atom)
0 Response to Convert composite string variable delimited by commas into separate dummy variables
Post a Comment