smooth_lss {LSX}R 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()


[Package LSX version 1.4.0 Index]