Description Usage Arguments Value
This function returns for every x value the predicted mean, 95 Calculation is performed by the (currently undocumented) 'predictdf()' generic and its methods. 'loess', uses a t-based approximation, and for 'gam' the normal confidence interval is constructed on the link scale and then back-transformed to the response scale.
1 | smoothedMean(dt, method)
|
dt |
data.frame with at least two columns: x) representing the independent variable and y) representing the dependent variable |
method |
Character string one of 'loess' or 'gam' |
data.table with the follwing columns x, y (predicted mean), ymin, ymax (lower and upper bound of confidence interval), se (standard error)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.