confband.tramME | R Documentation |
tramME
modelPointwise confidence intervals or multiplicity-adjusted confidence bands for transformation, distribution, survivor or cumulative hazard functions.
## S3 method for class 'tramME'
confband(
object,
newdata,
level = 0.95,
type = c("trafo", "distribution", "survivor", "cumhazard"),
adjust = FALSE,
K = 40,
cheat = K,
q = NULL,
baseline_only = FALSE,
...
)
object |
The |
newdata |
A data frame of covariate values. |
level |
Confidence level. |
type |
The scale on which the condfidence bands are calculated. |
adjust |
If |
K |
The number of grid points at which the outcome distribution is evaluated. |
cheat |
In the case of multiplicity adjustment ( |
q |
The quantiles at which the model is evaluated. |
baseline_only |
If |
... |
Optional arguments passed to |
Similarly to confband
, this method evaluates the
conditional distribution of the outcome on a selected scale given a number
of grid-points and claculates the corresponding confidence intervals or
bands (adjusting for multiplicity).
The point estimates retured by this function could also be calculated with
predict.tramME
(when newdata
does not contain
response values and K
is set to the number of grid points).
While predict.tramME
is designed to calculate a
potentially large number of point estimates on a wider range of available
scales, confband
calculates the asymptotic intervals from the joint
covariance matrix of the fixed and random effects. For technical reasons,
a smaller set of type
options are available, and the calculations
are slower than with predict.tramME
. The handling of random
effects is currently stricter than in predict.tramME
: No
ranef
option is available, and grouping factors for random effects
supplied in newdata
must have the same levels as the dataset used
to fit the model.
The multiplicity adjustment is done using
confint.glht
. The cheat
argument reduces
the dimensionality of the multivariate root-finding problem (see
qmvt
) for speed and (occasionally) numerical
stability. The critical value for the confidence bands are obtained for
cheat < K
grid points, but the confidence bands are calculated for
K
grid points. As a result, the nominal level of the returned
confidence band is not maintained, but the deviation is expected to be
small if cheat
is reasonably large. It is the user's responsibility
to set this value, and by default cheat = K
.
A matrix (in the case when newdata
has a single row) or a
list of matrices for each row of newdata
.
This method implements new functionality. Its user interface may be subject to change.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.