get.smooth | R Documentation |
Smooth TCATA curves, constraining smooth within low.bound
and up.bound
.
get.smooth(y, w = NULL, spar = 0.5, low.bound = 0, up.bound = 1)
y |
the vector of proportions (or counts) to be smoothed. If a data frame is provided then smoothing is conducted on each row. |
w |
an optional vector of weights; see |
spar |
smoothing parameter; see |
low.bound |
lower bound for smoothed proportions |
up.bound |
upper bound for smoothed proportions |
out smoothed vector (or data frame with smoothed rows)
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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.foodqual.2015.06.017")}
smooth.spline
, 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.