confidence_ellipsoid {ConfidenceEllipse} | R Documentation |
Confidence Ellipsoid Coordinates
Description
Compute the coordinate points of confidence ellipsoids at a specified confidence level.
Usage
confidence_ellipsoid(
.data,
x,
y,
z,
.group_by = NULL,
conf_level = 0.95,
robust = FALSE
)
Arguments
.data |
data frame or tibble. |
x |
column name for the x-axis variable. |
y |
column name for the y-axis variable. |
z |
column name for the z-axis variable. |
.group_by |
column name for the grouping variable ( |
conf_level |
confidence level for the ellipsoid (0.95 by default). |
robust |
optional ( |
Value
Data frame of the coordinate points.
Author(s)
Christian L. Goueguel
Examples
# Data
data("glass", package = "ConfidenceEllipse")
# Confidence ellipsoid
ellipsoid <- confidence_ellipsoid(.data = glass, x = SiO2, y = Na2O, z = Fe2O3)
ellipsoid_grp <- confidence_ellipsoid(
.data = glass,
x = SiO2,
y = Na2O,
z = Fe2O3,
.group_by = glassType
)