coef.tridim_transformation | R Documentation |
Posterior distributions for transformation coefficients in full or summarized form.
## S3 method for class 'tridim_transformation'
coef(
object,
summary = TRUE,
probs = c(0.055, 0.945),
convert_euclidean = FALSE,
...
)
object |
An object of class tridim_transformation. |
summary |
Whether summary statistics should be returned instead of
raw sample values. Defaults to |
probs |
The percentiles used to compute summary, defaults to 89% credible interval. |
convert_euclidean |
Whether to convert matrix coefficients to scale(phi) and rotation(theta). Defaults to |
... |
Unused |
If summary=FALSE, a list with matrix iterationsN x dimensionsN for each variable. If summary=TRUE, a data.frame with columns "dvindex" with mean for each dependent variable plus optional quantiles columns with names "dvindex_quantile".
euc2 <- fit_transformation(depV1+depV2~indepV1+indepV2,
data = NakayaData,
transformation = 'euclidean')
# full posterior distribution
transform_posterior <- coef(euc2, summary=FALSE)
# coefficients' summary with 89% CI
coef(euc2)
# scale and rotation coefficients
coef(euc2, convert_euclidean=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.