print.qgcompfit: Default printing method for a qgcompfit object

Description Usage Arguments See Also Examples

View source: R/base_generics.R

Description

Gives variable output depending on whether qgcomp.noboot or qgcomp.boot is called. For qgcomp.noboot will output final estimate of joint exposure effect (similar to the 'index' effect in weighted quantile sums), as well as estimates of the 'weights' (standardized coefficients). For qgcomp.boot, the marginal effect is given, but no weights are reported since this approach generally incorporates non-linear models with interaction terms among exposures, which preclude weights with any useful interpretation.

Usage

1
2
## S3 method for class 'qgcompfit'
print(x, showweights = TRUE, ...)

Arguments

x

"qgcompfit" object from qgcomp, qgcomp.noboot or qgcomp.boot function

showweights

logical: should weights be printed, if estimated?

...

unused

See Also

qgcomp.noboot, qgcomp.boot, and qgcomp

Examples

1
2
3
4
5
6
7
set.seed(50)
dat <- data.frame(y=runif(50), x1=runif(50), x2=runif(50), z=runif(50))
obj1 <- qgcomp.noboot(y ~ z + x1 + x2, expnms = c('x1', 'x2'), data=dat, q=2)
obj2 <- qgcomp.boot(y ~ z + x1 + x2, expnms = c('x1', 'x2'), data=dat, q=2, B=10, seed=125)
# does not need to be explicitly called, but included here for clarity
print(obj1)
print(obj2)

qgcomp documentation built on Jan. 24, 2022, 5:08 p.m.