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
How to do K-S test with weight Dear specialists, I really thank everyone here sparing no efforts to help me. The problem is this…
getting 95% CIs for multinomial variable, with clusteringHi all, I'd like to obtain 95% CIs for a variable with 3 categories - male, female, and unknown; ove…
New to Stata, need some advice about how to learn StataHello, everyone. I am new to Stata, really need some advice about how to learn STATA, especially how…
Can we apply different estimation techniques in a single paper?In a research paper, if we use, for example, the ZINB model for our main analysis (main table). Can …
Matched dataset based on multiple variablesHello, I am attempting to create a dataset of matched observations based on multiple criteria. I h…
Subscribe to:
Post Comments (Atom)
0 Response to Convert composite string variable delimited by commas into separate dummy variables
Post a Comment