I have a Stata command which generates the new variable y with value .
gen y=.
I want to know whether following is the equivalent command in R“
y<-NA
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using this
In R the missing values are represented by NA.
R haven’t such representation of missing data. all missings data are represneted by
NA.In R, we use
is.nato check for missing data.