coef.wqs: Finding WQS Coefficients

Description Usage Arguments Details See Also Examples

View source: R/coef_wqs_helper.R

Description

An accessor function that returns the coefficients from the validation WQS model, a wqs object.

Usage

1
2
## S3 method for class 'wqs'
coef(object, ...)

Arguments

object

An object of class "wqs", usually as a result of estimate.wqs.

...

other arguments.

Details

In a wqs object, the fit element, a glm2 object, is extracted. See glm2{glm2}.

See Also

coef

Other wqs: analyze.individually(), do.many.wqs(), estimate.wqs.formula(), estimate.wqs(), make.quantile.matrix(), plot.wqs(), print.wqs()

Examples

1
2
3
4
5
6
7
8
# Use simulated dataset and set seed for reproducibility.
data(simdata87)
set.seed(23456)
Wa <- estimate.wqs(
  y = simdata87$y.scenario, X = simdata87$X.true[, 1:3],
  B = 10, family = "binomial"
)
coef(Wa)

miWQS documentation built on April 3, 2021, 1:06 a.m.