- formula
a two-sided formula object describing the model to be fitted,
with the response variable on the left of a ~ operator and covariates on the right,
separated by + operators. The fixed effect of the provider identifier is specified using id().
- data
a data frame containing the variables named in the formula,
or the columns specified by Y.char, Z.char, and ProvID.char.
- Y.char
a character string specifying the column name of the response variable in the data.
- Z.char
a character vector specifying the column names of the covariates in the data.
- ProvID.char
a character string specifying the column name of the provider identifier in the data.
- Y
a numeric vector representing the response variable.
- Z
a matrix or data frame representing the covariates, which can include both numeric and categorical variables.
- ProvID
a numeric vector representing the provider identifier.
- max.iter
maximum iteration number if the stopping criterion specified by stop is not satisfied. The default value is 10,000.
- tol
tolerance used for stopping the algorithm. See details in stop below. The default value is 1e-5.
- bound
a positive number to avoid inflation of provider effects. The default value is 10.
- cutoff
An integer specifying the minimum number of observations required for providers.
Providers with fewer observations than the cutoff will be labeled as "include = 0" and excluded from model fitting. The default is 10.
- threads
a positive integer specifying the number of threads to be used. The default value is 1.
- message
a Boolean indicating whether to print the progress of the fitting process. The default is TRUE.