predict.tridim_transformation | R Documentation |
Predicted values based on the bi/tridimensional regression model object.
## S3 method for class 'tridim_transformation'
predict(object, newdata = NULL, summary = TRUE, probs = NULL, ...)
object |
An object of class tridim_transformation |
newdata |
An optional two column data frame with independent variables. If omitted, the fitted values are used. |
summary |
Whether summary statistics should be returned instead of
raw sample values. Defaults to |
probs |
The percentiles used to compute summary, defaults to NULL (no CI). |
... |
Unused |
If summary=FALSE, a numeric matrix iterationsN x observationsN x variablesN. If summary=TRUE, a data.frame with columns "dvindex" with mean for each dependent variable plus optional quantiles columns with names "dvindex_quantile".
fit_transformation
euc2 <- fit_transformation(depV1+depV2~indepV1+indepV2,
NakayaData, transformation = 'euclidean')
# prediction summary
predictions <- predict(euc2)
# full posterior prediction samples
predictions <- predict(euc2, summary=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.