rpietro / airwayDehiscence

Airway dehiscence project using the UNOS database
0 stars 0 forks source link

Why do I get once a results for SD and the other time NA? #7

Closed mworni closed 12 years ago

mworni commented 12 years ago

sd(AGE, na.rm = FALSE) #na.rm=FALSE removes the missing from SD calculation [1] 14.91773 sd(AGE_DON, na.rm = FALSE) #na.rm=FALSE removes the missing from SD calculation [1] NA

rpietro commented 12 years ago

some thoughts:

  1. please check http://goo.gl/QfjIC for now
  2. notice that in the na.rm=FALSE what you are saying is that "removing NAs is false," which means that you are not removing NAs. would test to see whether if you do remove NAs (na.rm=TRUE) for both you get the same result

i will get back into the data analysis later tonight

On Tue, Jun 12, 2012 at 5:03 PM, mworni < reply@reply.github.com

wrote:

sd(AGE, na.rm = FALSE) #na.rm=FALSE removes the missing from SD calculation [1] 14.91773 sd(AGE_DON, na.rm = FALSE) #na.rm=FALSE removes the missing from SD calculation [1] NA


Reply to this email directly or view it on GitHub: https://github.com/rpietro/airwayDehiscence/issues/7

katiasilva commented 12 years ago

Ricardo, It works! Now I will do for all "NA" Thanks!

katiasilva commented 12 years ago

Actually, it just works if we use "TRUE" instead "FALSE".

rpietro commented 12 years ago

excellent, then the issue was really missing data. copying Mathias and Tony as they were having the same problem

On Tue, Jun 12, 2012 at 7:36 PM, katiasilva < reply@reply.github.com

wrote:

Actually, it just works if we use "TRUE" instead "FALSE".


Reply to this email directly or view it on GitHub: https://github.com/rpietro/airwayDehiscence/issues/7#issuecomment-6287142