在R版本3.4.4中使用R包“效果" [英] using R package 'effects' in R version 3.4.4

查看:132
本文介绍了在R版本3.4.4中使用R包“效果"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我正在使用R版本3.4.4. 我正在尝试使用R包的效果". 但是我无法安装&在此版本上使用该软件包.

Currently, I'm using R version 3.4.4. And I'm trying to use R package 'effects'. But I can't install & use this package on this version.

code
install.packages("effects")
library(effects)
plot(allEffects(lm_g_sc), type="response")

结果

install.packages中的警告:软件包效果"不可用 (对于R版本3.4.4)

Warning in install.packages : package ‘effects’ is not available (for R version 3.4.4)

我该怎么办? 如果我不能使用此软件包,那么还有其他替代软件包吗?

What can I do? If I can't use this package, there are some alternative packages?

推荐答案

由于相关的堆栈溢出问题,我为此目的专门构建了一个包oldr.该软件包可在此处获取:

As a result of a related Stack Overflow question, I built a package specifically for this purpose, oldr. The package is available here:

https://github.com/duckmayr/oldr

您可以通过以下方式安装

You can install via

devtools::install_github("duckmayr/oldr")

一旦安装了软件包,您只需要运行

Once the package is installed, you just need to run

oldr::install.compatible.packages("effects")

函数oldr::install.compatible.packages()搜索CRAN档案,以找到与您安装的R版本兼容的软件包的最新版本.

The function oldr::install.compatible.packages() searches through the CRAN archives to find the newest version of the package that is compatible with your installed version of R.

这篇关于在R版本3.4.4中使用R包“效果"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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