I have a string variable that I want to change to numeric but I can't. Can you help me please
storage display value
variable name type format label variable label
----------------------------------------------------------------------------------------------------------------
d1 str18 %18s type de culture
destring d1, replace
d1 contains nonnumeric characters; no replace
Related Posts with converting string variables to numeric
Loop computations across many .dta files and define new variable based on computationDear all STATA users, I am new to STATA and have run into some issues with a data task. I hope you …
Oaxaca result conversion?I got the following results through oaxaca two-fold method. ---------------------------------------…
Testing after margins, postHoping someone can help me understand an issue with using test after margins, post. I run the follo…
how to do crosstabulation for a list of variablesDear Statalist users, I am using Stata 14 and I have an individual-level dataset. I have a question …
Graphing age and period main effects derived from mixed-effects logit modelHello Everyone, I am estimating an age-period-cohort (APC) model to isolate cohort trends in diabet…
Subscribe to:
Post Comments (Atom)
0 Response to converting string variables to numeric
Post a Comment