# Create example data
set.seed(42)
prec_data <- data.frame(
day = rep(1:5, each = 6),
run = rep(rep(1:2, each = 3), 5),
value = rnorm(30, mean = 100, sd = 5)
)
prec_data$value <- prec_data$value + rep(rnorm(5, 0, 3), each = 6)
prec <- precision_study(prec_data, value = "value", day = "day", run = "run")
# Variance component chart (default)
plot(prec)
plot(prec, type = "variance")
# Precision estimates with CIs
plot(prec, type = "precision")
Run the code above in your browser using DataLab