summary.sanon {sanon}R Documentation

Summarizing Weighted Least Squares Fits

Description

summary method for class "sanon".

Usage

## S3 method for class 'sanon'
summary(object, ...)

## S3 method for class 'summary.sanon'
print(x, ...)

Arguments

object, x

an object of class "sanon", usually, a result of a call to sanon

...

further arguments passed to or from other methods.

Details

This function provide the p value for the hypothesis test of coefficient in the model of weighted least squares method. Note that the estimates in the output are for the (xi_k - 0.5).

Value

coefficients

a p x 4 matrix with columns for the estimated coefficient, its standard error, chi-squared statistic and corresponding (two-sided) p-value.

advarnames

adjust variable names in weighted least squares method

Examples

##### Example 3.1 Randomized Clinical Trial of Chronic Pain #####
data(cpain)
sum1 = summary(sanon(response ~ grp(treat, ref="placebo") + strt(center) + strt(diagnosis)
, data=cpain))
sum1

##### Example 3.2 Randomized Clinical Trial of Respiratory Disorder #####
data(resp)
sum22 = summary(sanon(cbind(baseline, visit1, visit2, visit3, visit4) 
~ grp(treatment, ref="P") + strt(center) + strt(sex) + covar(age), data=resp))
sum22


[Package sanon version 1.6 Index]