Quick way to create an example lgpfit, useful for debugging

example_fit(
  formula = y ~ id + age + age | SEX + age | LOC,
  likelihood = "gaussian",
  chains = 1,
  iter = 30,
  num_indiv = 6,
  num_timepoints = 5,
  ...
)

Arguments

formula

model formula

likelihood

observation model

chains

number of chains to run

iter

number of iterations to run

num_indiv

number of individuals (data simulation)

num_timepoints

number of time points (data simulation)

...

additional arguments to lgp

Value

An lgpfit object created by fitting the example model.