简体   繁体   English

在R中运行multinom()后如何更改输出

[英]How to change the output after running multinom() in R

Dear Stackoverflow community, 尊敬的Stackoverflow社区,

The default output R produces after running multinom() from the nnet package only includes the coefficients of the dependent variables, the residual deviance and the Akaike Information Criterion. 从nnet包运行multinom()后产生的默认输出R仅包括因变量的系数,残差和Akaike信息准则。 Unfortunately, there is no information whatsoever on the number of observations used at fitting the model, the Wald Chi Square and the pseudo-R2, which Stata provides after a multinomial logit. 不幸的是,没有任何信息可以用来拟合模型,Wald Chi Square和拟R2( Stata在多项logit后提供)的拟合模型。 How could I get these model statistics after multinom ? multinom后如何获得这些模型统计信息? I am particularly interested in the number of observations, the pseudo R2 and the Wald-chi2 and its significance. 我对观测的数量,伪R2和Wald-chi2及其意义特别感兴趣。

At least to get Wald, you should install and load the 'car' package, And then you can use Anova (note this is different from the lowercase 'anova'). 至少要获得Wald,您应该安装并加载'car'软件包,然后才能使用Anova(请注意,这与小写的'anova'不同)。 There is a worked example here: http://www.datavis.ca/courses/VCD/R/output/wlf-glogit.html 这里有一个有效的示例: http : //www.datavis.ca/courses/VCD/R/output/wlf-glogit.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何用R中的multinom()预测 - How to predict with multinom() in R 如何在带有R的拦截的multinom()中使用预测? - How to use predict with multinom() with intercept in R? 如何解释 R 中 Multinom() Function 的系数表 - How to Interpret a Coefficient table for Multinom() Function in R R中的逻辑回归输出(使用多项式)中出现的NA - NAs occuring in the output of logistic regression (using multinom) in R R multinom()函数在100次迭代后停止,这是什么原因? - R multinom() function stops after 100 iterations, what is the reason? 我应该如何解释 R 中函数 multinom 的结果? - How should I interpret the results of function multinom in R? 来自R package nnet的函数multinom如何计算多项式概率权重? - How does the function multinom from R package nnet compute the multinomial probability weights? 如何获得R中multinom()中分析的确切观测值,或如何使fit()对包括NA在内的整个数据产生拟合 - how to get the exact observations analyzed in multinom() in R, or how to make fitted() produce a fit on entire data including NAs 多项式:如何获得观察数 - multinom: how to get the number of observations 如何获得使用R中的函数multinom创建的模型中包含的观察数? - How to get the number of observations included in a model created using the function multinom in R?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM