confregion | R Documentation |
Given the parameters of the confidence ellipse in the space of covariate coefficiets, it returns the confidence region of the effect.
confregion(mu, Sig, conf = 0.95, npoints = 100)
mu |
centre of the ellipse. |
Sig |
covariance matrix of the ellipse. |
conf |
confidence level of the region. |
npoints |
number of points of the border. |
data.frame
with three columns (named p1
, p2
, and p3
)
with ternary coordinates of the points of the ellipse.
Ternary::TernaryPlot() Ternary::TernaryPolygon( coordinates = plot3logit:::confregion(1:2, 0.3 * diag(2:1)), col = grDevices::rgb(0, 0, 0.5, 0.2), border = NA ) Ternary::TernaryPolygon( coordinates = plot3logit:::confregion(1:2, 0.1 * diag(2:1)), col = grDevices::rgb(0, 0, 0.5, 0.2), border = NA )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.