Learn R Programming

sanon (version 1.2)

summary.sanon: 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.

Value

  • coefficientsa p x 4 matrix with columns for the estimated coefficient, its standard error, chi-squared statistic and corresponding (two-sided) p-value.
  • advarnamesadjust variable names in weighted least squares method

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).

Examples

Run this code
##### 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

Run the code above in your browser using DataLab