individual_later_fit {LATERmodel} | R Documentation |
Fit individual LATER model to each dataset in a dataframe of datasets
Description
Fit individual LATER model to each dataset in a dataframe of datasets
Usage
individual_later_fit(
df,
with_early_component = FALSE,
fit_criterion = "likelihood",
jitter_settings = list(n = 7, prop = 0.5, seed = NA, processes = 2)
)
Arguments
df |
A dataframe with columns: |
with_early_component |
If |
fit_criterion |
String indicating the criterion used to optimise the fit by seeking its minimum.
|
jitter_settings |
Settings for running the fitting multiple times with randomly-generated offsets ('jitter') applied to the starting estimates.
|
Value
A dataframe with one row for each named dataset in df
and columns
equal to the LATER model parameters returned by fit_data$named_fit_params
Examples
data <- rbind(
data.frame(name = "test", promptness = rnorm(100, 3, 1)),
data.frame(name = "test_2", promptness = rnorm(100, 1, 1))
)
fit_params <- individual_later_fit(data)