loessList: List of loess models

Description Usage Arguments Examples

Description

Like nlsList, but for loess. Supports only a single grouping variable, with a formula of the form "y ~ x|group".

Usage

1
loessList(model, data, ...)

Arguments

model

Formula of the form y ~ x|group

data

A dataframe containing the three variables

...

Further arguments passed to loess, such as span and degree.

Examples

1
2
3
data <- as.data.frame(Orthodont)
data$age <- jitter(data$age, 2)
res <- loessList(distance ~ age | Sex, data=data)

RemkoDuursma/nlshelper documentation built on May 9, 2019, 9:39 a.m.