summary.sanon: Summarizing Weighted Least Squares Fits

Description Usage Arguments Details Value Examples

View source: R/sanon.r

Description

summary method for class "sanon".

Usage

1
2
3
4
5
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##### 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

sanon documentation built on July 8, 2020, 6:54 p.m.