powered by
Smooth TCATA curves, constraining smooth within low.bound and up.bound.
low.bound
up.bound
get.smooth(y, w = NULL, spar = 0.5, low.bound = 0, up.bound = 1)
out smoothed vector (or data frame with smoothed rows)
the vector of proportions (or counts) to be smoothed. If a data frame is provided then smoothing is conducted on each row.
an optional vector of weights; see smooth.spline
smooth.spline
smoothing parameter; see smooth.spline
lower bound for smoothed proportions
upper bound for smoothed proportions
Castura, J.C., Antúnez, L., Giménez, A., Ares, G. (2016). Temporal check-all-that-apply (TCATA): A novel temporal sensory method for characterizing products. Food Quality and Preference, 47, 79-90. tools:::Rd_expr_doi("10.1016/j.foodqual.2015.06.017")
smooth.spline, predict
predict
# example using 'syrah' data set low1 <- t(syrah[seq(3, 1026, by = 6), -c(1:4)]) colnames(low1) <- 10:180 x <- get.smooth(low1) round(x, 3)
Run the code above in your browser using DataLab