| plot.tramME {tramME} | R Documentation |
Plotting method for tramME objects
Description
Plot the conditional distribution evaluated at a grid of possible response values and a set of covariate and random effects values on a specified scale.
Usage
## S3 method for class 'tramME'
plot(
x,
newdata = model.frame(x),
ranef = NULL,
fix_smooth = TRUE,
type = c("trafo", "distribution", "logdistribution", "survivor", "logsurvivor",
"density", "logdensity", "hazard", "loghazard", "cumhazard", "logcumhazard", "odds",
"logodds", "quantile"),
...
)
Arguments
x |
A |
newdata |
an optional data frame of observations |
ranef |
Random effects (either in named list format or a numeric vector) or the word "zero". See Details. |
fix_smooth |
If |
type |
The scale on which the predictions are evaluated:
|
... |
Additional arguments, passed to |
Details
When ranef is equal to "zero", a vector of zeros with the right size is
substituted. For more details, see predict.tramME.
For more information on how to control the grid on which the functions are evaluated,
see the documentation of predict.mlt.
Value
A numeric matrix of the predicted values invisibly.
Examples
data("sleepstudy", package = "lme4")
fit <- BoxCoxME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
plot(fit, K = 100, type = "density")