- f
an r formula representing the conditional model for the outcome, given all
exposures and covariates. Interaction terms that include exposure variables
should be represented via the AsIs
function
- qdata
a data frame with quantized exposures
- intvals
sequence, the sequence of integer values that the joint exposure
is 'set' to for estimating the msm. For quantile g-computation, this is just
0:(q-1), where q is the number of quantiles of exposure.
- expnms
a character vector with the names of the columns in qdata that represent
the exposures of interest (main terms only!)
- rr
logical, estimate log(risk ratio) (family='binomial' only)
- main
logical, internal use: produce estimates of exposure effect (psi)
and expected outcomes under g-computation and the MSM
- degree
polynomial bases for marginal model (e.g. degree = 2
allows that the relationship between the whole exposure mixture and the outcome
is quadratic. Default=1)
- id
(optional) NULL, or variable name indexing individual units of
observation (only needed if analyzing data with multiple observations per
id/cluster)
- weights
"case weights" - passed to the "weight" argument of
glm
or bayesglm
- bayes
use underlying Bayesian model (arm
package defaults). Results
in penalized parameter estimation that can help with very highly correlated
exposures. Note: this does not lead to fully Bayesian inference in general,
so results should be interpreted as frequentist.
- MCsize
integer: sample size for simulation to approximate marginal
zero inflated model parameters. This can be left small for testing, but should be as large
as needed to reduce simulation error to an acceptable magnitude (can compare psi coefficients for
linear fits with qgcomp.zi.noboot to gain some intuition for the level of expected simulation
error at a given value of MCsize)
- hasintercept
(logical) does the model have an intercept?
- ...
arguments to glm (e.g. family)