create_slope_term: Slope term creation

View source: R/model_setup_helpers.R

create_slope_termR Documentation

Slope term creation

Description

Creates a single slope term (at the population level) Can be manipulated via "by" argument as done in mgcv (Wood, 2017). Note: Use of unique values that are just repeated requires all levels of the category factor (usually subjects) to have the same values on the variable time.

Usage

create_slope_term(time, fact)

Arguments

time

A numeric vector containing positive time values in ms

fact

The factor column from the data-frame passed to papss::pupil_solve()


JoKra1/papss documentation built on June 15, 2022, 8:57 a.m.