I have created a 1 to 5 matched case-control data set using MatchIt.
The characteristics of the variables in a stan_clogit model are:
Hypoglycemic60 fct
Emergency fct
ElixCount int
AdmissionType fct
BypassDuration dbl
IntraopVasoplegia fct
IntraopHypoglycemic fct
IntraopHypotensive fct
IntraopInotropeVasopressor fct
EBLClass fct
PRBCClass fct
ElixCount int
Strata fct
There are 183 cases and 915 matched controls.
The data has been sorted by the strata = Strata argument.
The model is called with:
CardiacHypoglycemic60.matchit.stanreg <- stan_clogit(
formula =
Hypoglycemic60 ~
Emergency +
ElixCount +
AdmissionType +
BypassDuration +
IntraopVasoplegia +
IntraopHypoglycemic +
IntraopHypotensive +
IntraopInotropeVasopressor +
EBLClass +
PRBCClass,
strata = Strata,
data = CardiacHypoglycemic60.matchit.df
)
CardiacHypoglycemic60.matchit.stanreg
sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS
rstanarm 2.21.1
There are 24 cpus and 126 GB ram.
When the pids are launched a warning message is sent:
non-list contrasts argument ignored
Sampling starts and terminates abnormally with the message:
stan_clogit Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, : ?sum? not meaningful for factors site:https://discourse.mc-stan.org/
This is reproducible.
I am unable to debug the warning message and the fatal termination of sampling.
Nathan