I am trying to calculate predicted probabilities of interaction terms, and I used the following commands but am getting errors.
Firthlogit y a b c.c##I.(d e)
margins c#d#e, atmeans expression (invlogit(predict(xb)))
factor c not found in list of covariates
margins c.c#d#e, atmeans expression (invlogit(predict(xb)))
only factor variables and their interactions are allowed
I also tried the other numerous commands for weeks but there is only one command that seems to work.
Firthlogit y a b c.c##I.(d e)
margins d , at( c =(min (10) max)) vsquish atmeans expression (invlogit(predict(xb)))
marginsplot, x(c)
Can anyone tell me if the command is correct for calculating the predicted probabilities of interaction terms, and if not what do I need to do?
Thank you very much in advance.
Firthlogit y a b c.c##I.(d e)
margins c#d#e, atmeans expression (invlogit(predict(xb)))
factor c not found in list of covariates
margins c.c#d#e, atmeans expression (invlogit(predict(xb)))
only factor variables and their interactions are allowed
I also tried the other numerous commands for weeks but there is only one command that seems to work.
Firthlogit y a b c.c##I.(d e)
margins d , at( c =(min (10) max)) vsquish atmeans expression (invlogit(predict(xb)))
marginsplot, x(c)
Can anyone tell me if the command is correct for calculating the predicted probabilities of interaction terms, and if not what do I need to do?
Thank you very much in advance.
Comment