是否有一个R包可以使用clogit或bife为条件(固定效应)逻辑模型计算伪R平方度量? [英] Is there an R-package to calculate pseudo R-squared measures for conditional (fixed effects) logistic models using clogit or bife?

查看:191
本文介绍了是否有一个R包可以使用clogit或bife为条件(固定效应)逻辑模型计算伪R平方度量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个R-package来为我的模型计算伪R-平方量度? rcompanion既不支持clogit也不支持bife(由于缺少拦截功能?).

Is there a R-package to calculate pseudo R-squared measures for my model? rcompanion neither supports clogit nor bife (due to missing intercept?).

最初,这是从更大的上下文出发的一个问题,我对其进行了编辑以使其更具可读性.

Originally that was one question out of a larger context, which I edited to make it more readable.

提前感谢您的帮助!

推荐答案

相对于问题5:伪r平方值的定义(主要基于对数似然值)由

Relative to question 5: Definitions for pseudo r-squared values based (mostly) on log likelihood values are given by UCLA IDRE. If you are able to extract the log likelihood from the fitted model and null model, calculating these measures is fairly straightforward. I don't know which, if any, of these might make sense for this kind of model. If the log likelihood values are not available for this kind of model are not available, Efron's pseudo r-square, which is based on the predicted and actual y values. This might be serviceable in this case; I don't know.

这篇关于是否有一个R包可以使用clogit或bife为条件(固定效应)逻辑模型计算伪R平方度量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆