simulate_knot: Simulate knot locations

Description Usage Arguments

View source: R/fixef_sim.r

Description

Function that generates knot locations. An example of usefulness of this funciton would be with generation of interrupted time series data. Another application may be with simulation of piecewise linear data structures.

Usage

1
simulate_knot(data, sim_args)

Arguments

data

Mostly internal argument.

sim_args

A named list with special model formula syntax. See details and examples for more information. The named list may contain the following:

  • fixed: This is the fixed portion of the model (i.e. covariates)

  • random: This is the random portion of the model (i.e. random effects)

  • error: This is the error (i.e. residual term).


simglm documentation built on Feb. 7, 2022, 9:08 a.m.