dts_regress2: Regress2

View source: R/regress2.R

dts_regress2R Documentation

Regress2

Description

Fill in missing values by multiple regression.

Usage

dts_regress2(
  x,
  dtt = "DateTime",
  colname = c("Value", "Value2", "Value3"),
  intercept = TRUE,
  min_gap = 0L,
  min_n = 5L
)

Arguments

x

A dts data frame

dtt

A string specifying the column with the Date or POSIXct values.

colname

A character vector specifying the column(s) with the other values.

intercept

A flag indicating whether an intercept should be estimated (or fixed at 0)

min_gap

An integer of the minimum gap to leave between regressed and existing values.

min_n

A count of the minimum of data points to require.

Value

A data frame

Examples

dts_regress2(dts_data)[1:5,]

poissonconsulting/dts documentation built on March 10, 2024, 6:21 a.m.