[R] Hmisc, summary.formula and catTest

moleps moleps2 at gmail.com
Thu Jan 6 23:29:34 CET 2011


Allright..Works like a charm. However I do believe that the prtest vector should have been mentioned in the catTest or conTest option. Appreciate your time and effort.
Best,
//M

On 6. jan. 2011, at 23.24, Erik Iverson wrote:

> 
>> Does the prtest argument help when you actually use the 'print' function
>> around your summary.formula object? I think that's how I
>> solve it.
> 
> I.e.,
> 
> sf1 <- summary(trt~sex+ascites,data=ex,test=T,method="reverse",catTest=u)
> 
> print(sf1, prtest = "P")
> 
> 
> Descriptive Statistics by trt
> 
> +-------+---+---------+---------+-------+
> |       |N  |1        |2        |P-value|
> |       |   |(N=158)  |(N=154)  |       |
> +-------+---+---------+---------+-------+
> |sex : f|418|87% (137)|90% (139)|  0.377|
> +-------+---+---------+---------+-------+
> |ascites|312| 9% ( 14)| 6% ( 10)|  0.526|
> +-------+---+---------+---------+-------+



More information about the R-help mailing list