This function is called by the fit_fit module and calls disaggregation::disag_model() with the only difference being that covariates are wrapped to enable asynchronous operation and any errors are returned as a character

fit_fit(data, priors, family, link, iterations, field, iid, async = FALSE)

Arguments

data

disag_data. Object returned by prepare_data function that contains all the necessary objects for the model fitting

priors

list. List of prior values

family

character. Model family to fit

character. Link function to use

iterations

numeric. Number of iterations

field

logical. Whether to include a spatial field

iid

logical. Whether to include an iid effect

async

logical. Whether or not the function is being used asynchronously

Value

a list of class disag_model or a character string if an error occurs

Author

Simon Smart simon.smart@cantab.net