Description Usage Arguments Value
Defines the class bpc and creates the bpc object. To create we need to receive some defined parameters (the arguments from the bpc function), a lookup table and a the stanfit object generated from the rstan sampling procedure
1 2 3 4 5 6 7 8 9 10 11 | create_bpc_object(
stanfit,
lookup_table,
model_type,
standata,
call_arg,
cluster_lookup_table = NULL,
predictors_df = NULL,
predictors_lookup_table = NULL,
predictors_matrix = NULL
)
|
stanfit |
Stanfit object returned by rstan::sampling |
lookup_table |
lookup_table dataframe. Two columns one Index the other Names where each each index will match a string in the names |
model_type |
the type of the model used to call stan (string) |
standata |
a list with the data used to call the rstan::sampling procedure |
call_arg |
a list with the arguments called from the bpc function |
cluster_lookup_table |
a lookup table with we have random effects |
predictors_df |
the data frame of the predictors for a generalized model |
predictors_lookup_table |
a lookup table for generalized models |
predictors_matrix |
a matrix of predictors for generalized models |
a bpc object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.