r - 使用 GJRM 进行双变量概率回归的边际效应
问题描述
我在 R 中的双变量概率模型中寻找边际效应。对于单变量情况,通过
model <- glm(formula, family=binomal(link="probit"))
很清楚如何获得它们:只需采取
margins(model)
但现在我有一个用 gjrm 包估计的模型。我的示例如下所示:
library(Zelig)
data("sanction")
liste_biprob <- list(import ~ coop + cost, export ~ cost + target)
mr <- c("probit", "probit")
biprobit_1 <- gjrm(liste_biprob, data=sanction, Model="B", margins=mr)
我现在想从这个模型中提取边际效应。margins() 不再起作用。此外,我尝试以一种可以使用边距的方式拆分输出,但我失败了。如果有人有办法计算我的案例的边际效应,我将不胜感激!
解决方案
推荐阅读
- c++ - 我想改变条件,但我不能
- sql - 如何从两个不同的表中计算和和减法
- django - django.extra() 中是否有左连接,它可以帮助我在 django 中加入没有任何关系的表
- bash - 如何从 lcov --summary 命令中仅读取行覆盖率并存储在某些 shell 脚本变量中?
- typescript - 如何为 Visual Studio 代码添加方法描述?
- python - 将有序字典转换为 pandas 列
- android - 怯场——利用?- 对相同文件的重复请求
- dvc - 数据版本控制 (DVC) 就地编辑文件导致循环依赖
- python - 如何通过索引位置在 df 上插入后行?
- angularjs - 如何在 AngularJS 表单中嵌套 Angular 2+ 表单?