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
Panel Regression - RE/FEGood afternoon, This might be a simple question but here is my problem: I want to understand or se…
System GMM- Autoregressive Coefficient Greater Than OneI am using System GMM to examine if an Kuznets curve exists in Non-Communicable Diseases (NCD), I am…
Creating Unique Dummy Variables versus i. commandHi Stata Experts: Is there a benefit to creating individual dummy variables for RACE versus using th…
Plotting results using CoefplotHi Statalist, I am trying to visually present my regression results. I would like to plot main effec…
Calculating IRR - keep last observation of certain category by FundIDHi, I have private equity cashflow data from which I want to calculate the IRR for every fund. The…
Subscribe to:
Post Comments (Atom)
0 Response to Removing NA Across var
Post a Comment