I have data in string as shown below
data1 data2
NA NA
NA NA
NA NA
NA 8415739
NA 10024002
N 12057882
N 10759322
N 11305650
N 10937087
N 11463371
N 11287917
N 12720750
N 14849447
N 15542380
N 17368642
N 20738561
I want to replace NA observation to missing(.)
I tried this command
replace data1=. if data1==NA stata return error "NA not found"
Can anybody help me on this please
Related Posts with Removing NA Across var
Lag variable which ignores WeekendsHi, I am unable to find a command that will give me the lag variable but will ignore the weekends o…
Tab two string variablesHi everyone, This might be an easy question, but I just can't get to the right command. I have two…
Keyword-in-context analysisDear Statalist, I am trying to extract the five words before and after a given keyword in a string …
Stata 16.1MP memory issuesI am running the examples provided by -spgrid- command on my Stata 16.1 MP 2-core and Windows 10: …
codebook avoid wrapping of value labelsStata (Windows, Version 16) wraps value labels displayed in codebook output although linesize allows…
Subscribe to:
Post Comments (Atom)
0 Response to Removing NA Across var
Post a Comment