wwiecek / baggr

R package for Bayesian meta-analysis models, using Stan
GNU General Public License v3.0
46 stars 12 forks source link

improve remove_data_for_prior_pred() #84

Open wwiecek opened 4 years ago

wwiecek commented 4 years ago

Right now we need to name model-specific parameters when we add models:

  scalars_to0 <- c("K", "N", "Nc")
  vectors_to_remove <- c("theta_hat_k", "se_theta_k",
                         "y", "treatment", "site")
  matrices_to_remove <- c("X")
  matrices_to_rescale <- c("y_0", "y_1")
  arrays_to_rescale <- c("Sigma_y_k_0", "Sigma_y_k_1")

We have a few options:

  1. Write guidelines for model and review all models so that these names are more consistent
  2. Go to names.R and for each model define what parameters need to be "zeroed"