From: luciana <luciana.scalone_at_unimi.it>

Date: Tue 13 Jul 2004 - 20:28:36 EST

R-help@stat.math.ethz.ch mailing list

https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 13 20:34:53 2004

Date: Tue 13 Jul 2004 - 20:28:36 EST

I have a sample of diabetic people, matched (by age and sex) with a control sample. The variable I would like to compare is their drug and hospital monthly cost. The variable cost has a very far from gaussian distribution, but I need any way to compare the mean between the two group. So, in the specific case of a paired sample t-test, I aim at testing if the difference of cost is close to 0. What is the better way to follow for that?

Another question is that sometimes I have missing data in my dataset (for example I have the cost for a patients but not for a control). If I introduce NA or a dot, R doesn't estimate the statistic I need (for instance the mean). To overcome this problem I have replaced the missing data with the mean computed with the remaining part of data. Anyway, I think R can actually compute the mean even with the presence of missing data. Is it right? What can I do?

Thank you very much for your attention and, I hope, your help.

[[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list

https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 13 20:34:53 2004

*
This archive was generated by hypermail 2.1.8
: Fri 18 Mar 2005 - 02:35:49 EST
*