View source: R/tef_change_gam.R
tef_change_gam | R Documentation |
By defining the model variable associated with time (e.g., trial number), and
formulas defining each of the nonlinear parameters of time-related change,
this function constructs a model that can then be passed to functions for fitting
the model (e.g., TEbrm
).
tef_change_gam(
timeVar,
timeCovar = c(NULL),
groupingVar = "",
bs = c("ts", "cr", "cs", "tp", "cc")
)
timeVar |
String. Indicates the name of the time variable |
timeCovar |
Vector of strings, for variables that will be included in the time-evolving model. |
groupingVar |
String. Optional grouping variable (e.g., participant ID, in a behavioral study). If this is non-empty, then all |
bs |
Two letter character string inidicating the basis for smoothing. See ?mgcv::s |
Use is primarily for passing to link functions. If no link function is needed, then an equivalent
formula can be passed directly to brm
.
Function is under development and is likely to be buggy, and to change frequently.
TEbrm
for examples of how to use this function in specifying models.
equation_to_fit <- tef_change_gam('trialNum')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.