Function to compute prototype profile and confidence bands for a set of profiles (Phase I)

climProfiles(
  profiles,
  x = 1:nrow(profiles),
  smoothprof = FALSE,
  smoothlim = FALSE,
  alpha = 0.01
)

Arguments

profiles

Matrix with profiles in columns

x

Vector for the independent variable

smoothprof

regularize profiles? [FALSE]

smoothlim

regularize confidence bands? [FALSE]

alpha

limit for control limits [0.01]

Value

a matrix with three profiles: prototype and confidence bands

References

Cano, E.L. and Moguerza, J.M. and Prieto Corcoba, M. (2015) Quality Control with R. An ISO Standards Approach. Springer.

Author

Javier M. Moguerza and Emilio L. Cano

Examples

wby.phase1 <- ss.data.wby[, 1:35]
wb.limits <- climProfiles(profiles = wby.phase1,
    x = ss.data.wbx,
    smoothprof = FALSE,
    smoothlim = FALSE)
    plotProfiles(profiles = wby.phase1,
                 x = ss.data.wbx, 
                 cLimits = wb.limits)