1 2 3 4 5 6 7 8 9 10 11 12 13 | params(fit, alpha = getOption("qwraps.alpha", 0.05), ...)
## S3 method for class 'coxph'
params(fit, alpha = getOption("qwraps.alpha", 0.05), ...)
## S3 method for class 'glm'
params(fit, alpha = getOption("qwraps.alpha", 0.05), ...)
## S3 method for class 'lm'
params(fit, alpha = getOption("qwraps.alpha", 0.05), ...)
## S3 method for class 'survfit'
params(fit, alpha = getOption("qwraps.alpha", 0.05), ...)
|
fit |
a lm, glm, coxph, or survfit object |
alpha |
significance level, 100(1-alpha) \item...arguments to pass to params_frmtr as noted in the following \itemparamif NULL (default) then a full matrix of of all coeffients will be returned. A character represtation of the parameters of interest can be returned if specified. \itemdigitsnumber of digits after the decimal point, included trailing
zeros, to print numbers to: see pdigitsnumber of digits to format p-values: see show.cilogical, return confidence intervals \itemshow.pvallogical, return the p-values \itemalphasignificant level, reporting 100(1-alpha) \itemfunfunciton for transforming results. Particularly useful is
show.equal.signpassed to unitcan be added to the strings returned such that the string could be xx mg (95 xx (95 \itembig.markpassed to frmt \itemsmall.markpassed to frmt Parameter estiamtes, confidence intervals, and p-values form regression models. Results are presented in three forms, numeric matrix, character matrix, and individual strings. The character matrix and strings are intended to be used when knitting with LaTeX. fit <- lm(mpg ~ wt + cyl, data = mtcars) params(fit) params(fit, param = "wt") ## logisitic regression
fit <- glm(I(mgp > 25) ~ wt + cyl, data = mtcars,
family = binomial(link = "logit"))
# log odds
params(fit)
# odds ratios
params(fit, fun = exp)
Peter DeWitt
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.