smooth_lss: Smooth predicted LSS scores by local polynomial regression

View source: R/utils.R

smooth_lssR Documentation

Smooth predicted LSS scores by local polynomial regression

Description

Smooth predicted LSS scores by local polynomial regression

Usage

smooth_lss(
  x,
  lss_var = "fit",
  date_var = "date",
  span = 0.1,
  from = NULL,
  to = NULL,
  engine = c("loess", "locfit"),
  ...
)

Arguments

x

a data.frame containing LSS scores and dates.

lss_var

the name of the column for LSS scores.

date_var

the name of the columns for dates.

span

determines the level of smoothing.

from

start of the time period.

to

end of the time period.

engine

specifies the function to smooth LSS scores: loess() or locfit(). The latter should be used when n > 10000.

...

extra arguments passed to loess() or lp()


koheiw/LSS documentation built on March 9, 2024, 4:41 a.m.