Skip to contents

Apply LOESS smoothing to co-occurrence data

Usage

loess_door(
  data,
  cols_of_interest,
  time_col,
  span = 0.3,
  degree = 1L,
  family = c("gaussian", "symmetric")
)

Arguments

data

Data frame with co-occurrence columns

cols_of_interest

Character vector of code-pair columns

time_col

Strictly increasing time column

span

LOESS span parameter

degree

LOESS degree parameter (1 or 2)

family

"gaussian" or "symmetric"

Value

Data frame with door_* columns attached