[R] Odp: Using t tests

Petr PIKAL petr.pikal at precheza.cz
Fri Jul 8 11:39:56 CEST 2011


Hi

> [R] Using t tests
> 
> Dear Sir,
> 
> I am doing some work on a population of patients. About half of them are 
 
> admitted into hospital with albumin levels less than 33. The other half 
have 
> albumin levels greater than 33, so I stratify them into 2 groups, x and 
y 
> respectively.
> 
> I suspect that the average length of stay in hospital for the group of 
> patients (x) with albumin levels less than 33 is greater than those with 

> albumin levels greater than 33 (y).
> 
> What command function do I use (assuming that I will be using the chi 
> square test) to show that the length of stay in hospital of those in 
group x is 
> statistically significantly different from those in group y?

I am not an expert statistician but you suggested t test which seems to me 
appropriate.

About how to use it see

?t.test

Regards
Petr

> 
> I look forward to your thoughts.
> 
> Ivo Gwanmesia
> 
>    [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list