I have a variable receiving 3 types of results: 4-digit number, 3-digit number, and NA
For example
4412
4564
334
NA
7677
What I want is to get the first 3 digit as below
441
456
334
.
767
Could you please let me know how to make it? I think of generate a new variable but I am not sure how to make it.
Warm regards.
Related Posts with How to get the first 3 digit of a variable ?
Effective Reproductive NumberHello! Is there a way to calculate Effective Reproductive Number (Rt) in STATA? Thank you very muc…
Ordered Logit, Multinomial Logit- InterpretationsI am trying to run ordered logit for a dependent variable that takes values -1,0,1. Suppose educatio…
Non-normal distribution of latent variable in structural equations modelling - transformation?I have a simple path model with several latent variables that are ostensibly well enough indicated b…
Constrained optimization in StataDear Stata uses, I am having a constant optimization problem to solve in Stata I am having three var…
Tobit with vce(robust) or notHi, When I run tobit model specifying vce(robust), it does F test to test the hypothesis that the co…
Subscribe to:
Post Comments (Atom)
0 Response to How to get the first 3 digit of a variable ?
Post a Comment