79131605

Date: 2024-10-27 22:19:51
Score: 0.5
Natty:
Report link

Multinomial mixed model equation

library(mclogit)
multinom_model <- mblogit(Spawn_ID2 ~ average_Ca + average_Mn + average_Zn, data = train, random = ~1 | ID)

To obtain the parameters of the mixed multinomial model

coefs <- summary(multinom_model)$coefficients
LLs <- coefs[,1] + qnorm(.025)*coefs[,2]
ULs <- coefs[,1] + qnorm(.975)*coefs[,2]
OR <- exp(coefs[,1])
ORLL <- exp(LLs)
ORUL <- exp(ULs)
HHES <- coefs[,1]/1.81 # Hasselblad and Hedges Effect Size

To obtain the coefficients of the mixed multinomial model

round(cbind(coefs, LLs, ULs), 3)

enter image description here

To obtain the odds ratio of the mixed multinomial model

round(cbind(OR, ORLL, ORUL, HHES), 3)

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Pipas