Closed uriahf closed 2 months ago
You can certainly set pvarname="previous_state"
as an argument to soprobMarkovOrdm
. predict
on a "vglm" object ends up calling VGAM::predict.vlm
. It wasn't entirely clear to me how their function infers the state variable. If you can suggest how this works, I could make a pull request for @harrelfe to review.
That's exactly what I needed, thanks!
I'd like to use
soprobMarkovOrdm()
in order to produce state occupancy probabilities.It seems that
soprobMarkovOrdm()
requires specific column name for previous state ('yprev') and I wonder why.Other APIs do not require specific naming, as an example the
predict()
function do not have a similar requirement.I've added some reproducible code: