cpredict | R Documentation |
Predicted values using full conditional models derived from a multivariate
linear model (mlm
) object. The full conditionals model each response as a
linear model with all other responses used as predictors in addition to the
regressors specified in the formula of the mlm
object.
cpredict(object, standardize = TRUE, ...)
object |
a |
standardize |
logical defaults to |
... |
further arguments passed to |
Predictions using an mlm
object but based on the full conditional model,
that is, from a linear model for each response as a function of all responses
as well as predictors. This can be used in plots to diagnose the multivariate
normality assumption.
By default predictions are standardised to facilitate overlay plots of multiple
responses, as in plotenvelope
.
This function behaves much like predict.lm
, but currently, standard
errors and confidence intervals around predictions are not available.
A matrix of predicted values from full conditional models.
David Warton <david.warton@unsw.edu.au>
Warton DI (2022) Eco-Stats - Data Analysis in Ecology, from t-tests to multivariate abundances. Springer, ISBN 978-3-030-88442-0
cresiduals
, lm
, plotenvelope
, predict.lm
data(iris)
# fit a mlm:
iris.mlm=lm(cbind(Sepal.Length,Sepal.Width,Petal.Length,Petal.Width)~Species,data=iris)
# predict each response conditionally on the values of all other responses:
cpredict(iris.mlm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.