run_stan()wrangle_data.RdWrangles inputs into the format required for run_stan()
a dataframe of the format output by simulate_data() (inside
its list of outputs): with one row per sample replicate, including columns
id_sam, y, and plate. y should be numeric.
a dataframe of the format output by simulate_data() (inside
its list of outputs): with one row per calibrator replicate, including
columns x, y, and plate. x and y should be numeric.
a list as output by get_priors().
a list (whose names are the parameters p_pos, mu_neg, mu_pos, sd_neg, sd_pos) of character vectors (each one naming the categorical predictor variables used in the regression model for that parameter). The default value of a list with all empty character vectors is appropriate for using no regression model for any of these five parameters.
a character vector containing the names of binary variables used as fixed effects in the regression mode for seroprevalence. The default value of an empty character vector is appropriate for using no such regression model.
a character vector containing the names of variables used for a regression model for the four vector f. The default value of an empty character vector is appropriate for using no regression model.
a list whose elements are
df_plate, a dataframe with one row per plate;
data_descriptors, a list of things required as input for rename_params_from_stan() and wrangle_true_params();
stan_input_posterior, a list of things required as input for run_stan() if you want to sample from the posterior;
stan_input_prior, a list of things required as input for run_stan() if you want to sample from the prior (see the details section of the function documentation);
df_sam and df_cal (as provided as input but with extra columns added for Stan indexing).