Description Usage Arguments Details Value Examples
coef is a generic function which extracts model coefficients from objects returned by modeling functions. coefficients is an alias for it.
1 2 |
object |
an object of class " |
... |
further arguments passed to or from other methods. |
All object classes which are returned by model fitting functions should provide a coef method or use the default one.
Coefficients extracted from the model object object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ##### Example 3.1 Randomized Clinical Trial of Chronic Pain #####
data(cpain)
out1 = sanon(response ~ grp(treat, ref="placebo") + strt(center) + strt(diagnosis), data=cpain)
coef(out1)
coefficients(out1)
##### Example 3.2 Randomized Clinical Trial of Respiratory Disorder #####
data(resp)
P = rbind(rep(0, 4), diag(4), rep(0, 4))
out23 = sanon(cbind(baseline, visit1, visit2, visit3, visit4) ~ grp(treatment, ref="P")
+ strt(center) + strt(sex) + covar(age), data=resp, P=P)
# each four visits
coef(out23)
coefficients(out23)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.