I have a variable that captures actual household address, say, "76 Longstreet Albertville Gauteng". I want to generate another variable (string) that captures the province that the household is located in this case Gauteng. The text is case variaed (i.e. there are caps and lower cases for the address).
Related Posts with How to extract a word from a string variable.
Create a new variable with If -statementsHello Statalists, I ’am quite a beginner in Stata and statistics in general. I have a large data sa…
Tab the frequency of multiple variables with the same labelI'm sorry if this has been asked a thousand times, but I haven't found the answer by searching the f…
Correlations between two variables repeatedly measuredHi, I have a panel data of 30 subjects with 8 longitudinal observations each. I have measured 10 pl…
Adjusting for time-varying covariates in linear mixed modelsHi, I have a question about adjusting for time-varying covariates using multilevel linear mixed mod…
Problem with sgmediation after using SEMHello everyone, I used SEM to construct 5 factors using 29 variables. After, I did some regressions…
Subscribe to:
Post Comments (Atom)
0 Response to How to extract a word from a string variable.
Post a Comment