Hi All!,
I am facing a problem with nsso data while merging four files such as household, demographic, principal status, and subsidiary status into one where two files are having the same number of digits in the key variable (eg:20000110102) and the other two files having the same digits in the key variable (eg:1120000110102). I want to exclude the first two digits (i.e.11) from 1120000110102 to have the same values in all four files. I have gone through some of statalist posts that deal with string variable but mine are numerical formats. In that case, the command [gen newvar=substr(varname,#,#)] will not work, hence how can I do it. Kindly help me.
Thanking you in advance.
Related Posts with separating digits from the numerical variable.
Mixed regression contrastsDear Listers, Using -contrast- after the -mixed- command allows you to test the main and interactio…
Collapse by partial groupI have a big dataset of county level demographics "County Statename Year Agegroup" where agegroup …
estat classification after logitThere has been some problems getting correct/usable results from -estat classification-, eg: https:…
Add a reference lineHi, Please, could someone share with me an example of code with "TRAJ" command, specifically the po…
do we have user-command like reghdfe for logit or probit models?Thanks for your infomation! …
Subscribe to:
Post Comments (Atom)
0 Response to separating digits from the numerical variable.
Post a Comment