I am trying to fit a customized logistic regression/survival analysis function using the optim
/maxBFGS
functions in R and literally defining the functions by hand.
I was always under the impression that for the packages speedglm
, biglm
, and glm
, the likelihood functions for logit models or whatever distribution were hardlocked. However, I was wondering if I was mistaken or if it was possible to specify my own likelihood functions. The reason being that optim
/maxBFGS
is a LOT slower to run than speedglm
.