RSS: Residual sum of squares.

Description Usage Arguments Value Author(s) Examples

View source: R/functions.R

Description

This function calculates the residual sum of squares from observations and predicted performances.

Usage

1
RSS(data, theta, target, vars)

Arguments

data

A data frame object that contains at least training loads, performances and time between two consecutive sessions.

theta

A vector of parameters P0, k1, k3, tau1, tau2, tau3.

target

A character that indicates the performance column name.

vars

A list that contains input (i.e. session training loads) and time (i.e. the time between two consecutive inputs) numerical vectors.

Value

a numerical value

Author(s)

Frank Imbach frankimbach@gmail.com

Examples

1
RSS(data = example_data, theta= c(10, 0.1, 0.01, 40, 20, 5), target = "perf", vars = list("input" = example_data$training_load, "time" = example_data$rest))

fimbach/sysmod documentation built on Jan. 1, 2021, 1:21 a.m.