Re: [R] Exclude missing values on only 1 variable

2012-07-05 Thread David Winsemius
On Jul 5, 2012, at 1:34 PM, David Winsemius wrote: On Jul 5, 2012, at 1:25 PM, Eiko Fried wrote: Hello, I have many hundred variables in my longitudinal dataset and lots of missings. In order to plot data I need to remove missings. If I do data <- na.omit(data) that will reduce my datase

Re: [R] Exclude missing values on only 1 variable

2012-07-05 Thread arun
   4 16.59528 0.5981594   NA A.K. - Original Message - From: Eiko Fried To: r-help@r-project.org Cc: Sent: Thursday, July 5, 2012 1:25 PM Subject: [R] Exclude missing values on only 1 variable Hello, I have many hundred variables in my longitudinal dataset and lots of missings. In or

Re: [R] Exclude missing values on only 1 variable

2012-07-05 Thread Bert Gunter
Be careful!! The plots could be potentially misleading. The problem is the nature of the missingness. The approach you are taking is based on assuming MCAR missingness (look it up, if necessary). If that is not the case -- e.g. if there is censoring, MAR, or informative missingness -- the plots may

Re: [R] Exclude missing values on only 1 variable

2012-07-05 Thread David Winsemius
On Jul 5, 2012, at 1:25 PM, Eiko Fried wrote: Hello, I have many hundred variables in my longitudinal dataset and lots of missings. In order to plot data I need to remove missings. If I do data <- na.omit(data) that will reduce my dataset to 2% of its original size ;) So I only need to lis

[R] Exclude missing values on only 1 variable

2012-07-05 Thread Eiko Fried
Hello, I have many hundred variables in my longitudinal dataset and lots of missings. In order to plot data I need to remove missings. If I do > data <- na.omit(data) that will reduce my dataset to 2% of its original size ;) So I only need to listwise delete missings on 3 variables (the ones I a