smoothedMean: Smoothed Conditional Mean

Description Usage Arguments Value

View source: R/utils.R

Description

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.

Usage

1
smoothedMean(dt, method)

Arguments

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'

Value

data.table with the follwing columns x, y (predicted mean), ymin, ymax (lower and upper bound of confidence interval), se (standard error)


d-callan/plot.data documentation built on Jan. 27, 2021, 8:37 a.m.