geostan 0.6.0
Updates to geostan:
- Missing outcome data is now allowed in most models
- A bug in
prep_icar_data
has been fixed - Install instructions for using
install_github
Details:
-
The model fitting functions (
stan_glm
,stan_car
, etc.) now allow for missing data in the outcome variable (not covariates). This is explained in the geostan::stan_glm documentation, next to the discussion of handling censored observations. When missing observations are present, there will (only) be a warning issued. This functionality is available for any GLM (stan_glm
), any ESF model (stan_esf
), and any model for count data (Poisson and binomial models including CAR and SAR models). The only models for which this functionality is not currently available are CAR and SAR models that are being been fit to continuous outcome variables. -
The
prep_icar_data
function, which is used inside stan_icar, did not have the expected behavior in all cases - for some cases the function would fail to create the data required for the ICAR models, and the models would fail. (This means that it is unlikely that any results obtained from the models were negatively influenced by this issue - if you obtained results, then the bug probably didn't affect you.) This has been fixed thanks to this pull request. -
New install instructions are found on the package home page https://connordonegan.github.io/geostan/ Please report any difficulties with installation.