R6 class for performing Measurement System Analysis (MSA) Linearity studies.
Public fields
XA data frame containing the independent variable(s) used in the linearity study.
YA data frame containing the dependent variable(s) or responses measured in the linearity study.
modelThe linear model object resulting from the linearity analysis.
conf.levelA numeric value specifying the confidence level for the linearity analysis. This should be between 0 and 1 (e.g., 0.95 for a 95% confidence level).
LinearityA list or data frame containing the results of the linearity study, including the linearity value and associated statistics.
GageNameA character string specifying the name of the gage or measurement system under analysis.
GageToleranceA numeric value specifying the tolerance of the gage or measurement system.
DateOfStudyA character string or Date object indicating the date when the linearity study was conducted.
PersonResponsibleA character string specifying the name of the person responsible for the linearity study.
CommentsA character string for additional comments or notes about the linearity study.
facNamesA character vector specifying the names of the factors involved in the study, if any.
Methods
Method plot()
Plots the measurement system, including individual biases, mean bias, and a regression line with confidence intervals.
Usage
MSALinearity$plot(ylim, col, pch, lty = c(1, 2))Arguments
ylimA numeric vector specifying the limits for the y-axis. If not provided, the limits are automatically calculated based on data.
colA vector specifying the colors to be used for different plot elements.
pchA numeric vector specifying the plotting characters (symbols) for individual data points and mean bias points.
ltyA numeric vector specifying the line types for the regression line and its confidence intervals. The default is
c(1, 2).
Method as.data.frame()
Return a data frame with the information of the object MSALinearity.