confidence_ellipse {ConfidenceEllipse} | R Documentation |
Confidence Ellipse Coordinates
Description
Compute the coordinate points of confidence ellipses at a specified confidence level.
Usage
confidence_ellipse(
.data,
x,
y,
.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. |
.group_by |
column name for the grouping variable ( |
conf_level |
confidence level for the ellipse (0.95 by default). |
robust |
optional ( |
Value
Data frame of the coordinates points.
Author(s)
Christian L. Goueguel
Examples
# Data
data("glass", package = "ConfidenceEllipse")
# Confidence ellipse
ellipse <- confidence_ellipse(.data = glass, x = SiO2, y = Na2O)
ellipse_grp <- confidence_ellipse(
.data = glass,
x = SiO2,
y = Na2O,
.group_by = glassType
)
[Package ConfidenceEllipse version 1.0.0 Index]