plot.tramME | R Documentation |
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.
## 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"),
...
)
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 |
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
.
A numeric matrix of the predicted values invisibly.
data("sleepstudy", package = "lme4")
fit <- BoxCoxME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
plot(fit, K = 100, type = "density")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.