Hi there,
I have to combine the values of two numerical variables into a value in a new numerical variable, the new one will have 11 or 12 digits. For example, put 8497 and 2171205 together, the new numerical variable should show as 84972171205, but it shows as scientific notation, like 8.497e+10. I tried command "format var %12.0f", it turns out to be 84972167168.
I cannot do "destring" because this variable has to be numerical, and I do not need this variable get round up or down, because it just means ID number for an observation, is there any command can help me to show the whole number in the data editor without generating a new variable? Just replace the scientific notation with the whole number.
Thanks a lot!
Related Posts with showing the whole number for numerical variables
Creating IRF plots after ARIMAHello, For reasons I cannot figure out, I am able to create IRF plots after an ARIMA regression usi…
Assigning dates and days of week in a long datasetHello, I have a long dataset with observations that represent all of the days that a person was enr…
Difference between the two options under model two tab for three stage least squares?In stata after going to statistics-->endogenous covariates ---> Three stage least squares and …
Propensity Score with TEFFECTS / IPWRA: is it possible to create a bar graph showing covariate balancing?In looking through the TEFFECTS help files & PDF manual, I do see that a graph of individual cov…
iterations - stteffects ipwraHello, I am attempting to the stteffects ipwra in order to study the effect of drug1 on time to deat…
Subscribe to:
Post Comments (Atom)
0 Response to showing the whole number for numerical variables
Post a Comment