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
Guarantee 3 consecutive observations before and after the eventDear Stata Users,
I need to keep just those firms (gvkey) that have 3 year consecutive observations…
Generate a moving window averageIs there an easy way to generate a moving window average? For instance, for every 5 minutes of Ta_NO…
Can I use tssmooth for a fixed number of periods like a rolling forecast, safe the forecast t+5, then start in t+1, save forecast t+6...Hello everybody,
I'm trying to forecast values for the strategy of companies. I have a panel datase…
Weak IV test postestimation test when using ivreghdfe command?Dear STATA community,
I am hoping you can help me find a command I am looking for. My coauthor and …
Calibration of logistic regression on large dataset.Evaluating goodness-of-fit for a logistic regression model using the Hosmer-Lemeshow test is not rel…
Subscribe to:
Post Comments (Atom)
0 Response to Help with destringing a variable
Post a Comment