Hi all, greetings! I have a variable named "pcgdp" stored as string. Observations are numeric values. Some observations are missing and indicated by double dot "..". I want to convert it to numeric form. Executing the command "destring pcgdp, replace" returns the following: "pcgdp contains nonnumeric characters; no replace". Any help will be greatly appreciated.
Related Posts with changing string to float
combining datasets with different formats of a variable and ts valuesI have a dataset that includes information on naic codes, years, the quarter of those years in the f…
Calculation of mean for each industry quarter using egen, any quicker way!!Dear Statalist members, My dataset is something like this Code: * Example generated by -dataex-.…
Vuong test for hedonic price model - RegressionHi all, I am trying to estimate a hedonic price model. The first step used is estimating the Box Cox…
regression with time trendHi everyone, I have pooled cross-sectional dataset for 2009,2011,2012,2014 and 2017. I am trying to…
Drop if ALL specified variables fulfill a certain conditionDear statalist, is there a way to write the following command Code: drop if intention1==9 & i…
Subscribe to:
Post Comments (Atom)
0 Response to changing string to float
Post a Comment