Hello,
I'm working with a dataset and I want to destring a variable. This variable is a string but with blank spaces. For context, when i type in codebook I get the following result.
Type: String (str15)
Unique values: 3,972 Missing "": 0/5,949
Examples: "78176 6"
"159120 2"
"239 4 2"
"321139 2"
I tried to destring it but it doesn't work and I get the message 'contains nonnumeric characters; no replace'. I'm not too sure how to proceed with this. Would really appreciate some help!
Related Posts with Help with destringing a variable
Is there any other wrapper/executer/(executioner?) apart from -rangestat- that can run Mata functions?Good morning, I recently discovered a nice feature of the user contributed -rangestat-: one can use…
Clustering of SEs: Heteroskedasticity and AutocorrelationI am running a panel data analysis of geographic diversification (quadratic) on company performance …
Speeding up Mixlogit with large datasetsHi there, I am running a mixed logit model using the user written command mixlogit on Stata 16/MP8 …
How to make twoway line graph over group in the same figureHello colleagues, How can I make twoway line graph across grouping variable on the same figure? For…
Help with collinearityHello Statalist, I'm relatively new to STATA and I'm working on a research project on education lev…
Subscribe to:
Post Comments (Atom)
0 Response to Help with destringing a variable
Post a Comment