make_trend: Predict data for certain trend

View source: R/make_trend.R

make_trendR Documentation

Predict data for certain trend

Description

Predict data for certain trend

Usage

make_trend(data_source, sel_method = c("linear", "non_linear"))

Arguments

data_source

Data.frame with ROC and Age

sel_method

Which trend should be used:

  • "linear" - A linear model is fitted between the RoC values and their ages.

  • "non_linear" - A conservative generalised additive model (GAM) is fitted through the RoC scores and their ages (GAM = RoC ~ s(age, k = 3) using the mgcv package (Wood, 2011).

See Also

detect_peak_points()


HOPE-UIB-BIO/R-Ratepol-package documentation built on March 6, 2024, 7:10 a.m.