I could not find any function in Rchoice that calculates average marginal effects (AME) of the significant variables on the binary outcome for random parameters logit model, only found for heteroskedastic binary models and IV probit models > effect(). Same with 'marginaleffects' (https://marginaleffects.com). I also tried to incorporate 'margins' (https://cran.r-project.org/web/packages/margins/index.html) but got this error: Error in x$terms %||% attr(x, "terms") %||% stop("no terms component nor attribute") : no terms component nor attribute My dataset contains: 11 independent variables (10 are dummy , 1 continuous) 3 IV are assumed to be random parameters. summary(), modelsummary() all worked on my model. Any suggestion is really appreciated.

I am yet to finish writing the discussion part of my Master's thesis due to this issue (just to let you know how important it is for me to find a solution). Thanks in advance.

More Muhammad Nabil Zawad's questions See All
Similar questions and discussions