Message-ID: <0F348E52-E63A-4A3E-B03E-F1941C05F39A@gmail.com>
Date: 2011-01-06T22:43:06Z
From: moleps
Subject: Hmisc, summary.formula and catTest
In-Reply-To: <4D264138.4010204@ccbr.umn.edu>
Is it at all possible to specify this so that different tests display different parameters,
ie have the continous test display F, df and p while tes categorical test display only P values?
sf1 <- summary(trt~sex+ascites+age,data=ex,test=T,method="reverse",catTest=u)
print(sf1, prtest = "P")
//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|
> +-------+---+---------+---------+-------+