Hello,
I am fitting a logistic regression model, but am having difficulty getting sensible predictions.
This is my simple model:
model <- inla(binary_response ~ 1
+ Fixed_Effect1
, data=df2, family="binomial"
, Ntrials=1
, control.compute=list(return.marginals.predictor=TRUE, cpo=TRUE, waic=TRUE, dic=TRUE, config=TRUE)
, control.inla=list(strategy="adaptive", int.strategy="auto")
, control.family=list(link='logit'),
, control.predictor=list(link=1, compute=TRUE)
, verbose=F
)
But all predictions are positive, so after transforming them with the logistic function my predictions are all 1. If I comment out the `control.predictor=list(link=1, compute=TRUE)` I get all positive predictions for my training set, and all negative predictions for my test set.
For my test set I simply set the target values to NA.
Thank you