I am trying to use the cluster.vcov in R but it keeps telling me
cluster.vcov(regression1, data$country
Error in cluster.vcov(regression1, data$country) : could not find function "cluster.vcov
I have tried installing the package "multiwayvcov" but it says that such package does not exist. Does anybody know how to solve this issue?
Thank you very much,
Max
multiwayvcov package has been deprecated as mentioned here. The author recommends to use the sandwich package now which has the same functionality.
However, I can install both multiwayvcov and sandwich package on my system with R version 4.0.3 using install.packages('multiwayvcov') and install.packages("sandwich").
Related
I'm getting the almost the same error as the previous post, but the answers there are not working for me. I was able to use sjPlot with no issues until this afternoon when I installed parameters and sandwich and clubsandwich. I don't know what else I can do to get over this.
the error:
> library(sjPlot)
Error: package or namespace load failed for ‘sjPlot’:
object ‘standard_error_robust’ was not exported by 'namespace:parameters'
In addition: Warning message:
package ‘sjPlot’ was built under R version 4.1.3
Any help would be much appreciated. Updating parameters didn't solve it. Meanwhile, is there an equivalent function for tab_model()? (since I cannot use it...). Thanks in advance.
devtools::install_github("strengejacke/sjPlot") worked for me :D
In spite of having the packages "rLiDAR" and "lidR" already installed in my computer, and having R Studio updated, when I use the function readLAS(), it doesn´t work. What could be the problem?
My line of code:
LAS<-readLAS(lasfile,short=TRUE)
Error: could not find function "readLAS"
Looks like the package is probably not installed properly and/or the required magrittr package is missing (if you are using lidR).
install.packages("lidR")
install.packages("magrittr")
library(lidR)
las = readLAS("yourpath/yourfile.las")
summary(las)
I'm pretty sure the short=TRUE option is only available in the rLidar package, not lidR.
https://cran.r-project.org/web/packages/lidR/lidR.pdf
https://cran.r-project.org/web/packages/rLiDAR/rLiDAR.pdf
I would like to apply the function 'fit.tcopula' from the package 'QRM' - Quantitative Risk Management and get the following error message:
fit.tcopula(Udata, method = 'Kendall')
Error: could not find function "forceAndCall"
Since I have applied the 'Udata' to different copulas from the package 'copula' already - and it worked fine - I assume the input is not an issue.
To my understanding 'forceAndCall' is part of the base package. I use the R version 3.1.3.
According to the documentation the QRM package depends R(>=3.0.1), so my version should be OK. However, listing all functions of my base package with
library(help = 'base')
reveals that the forceAndCall-Function is not there. What would the remedy be? Installing R version 3.2.1?
The reason I ask and not just do it is that I do not possess admin rights for my PC and therefore would be happy to get an opinion beforehand.
I posted the question though I already have the answer as it might be interesting to others.
Upgrading to R version 3.2.1 is the/one solution to the problem!
I'm trying to do LMM using lme4, and this message pops up:
Error in initializePtr() :
function 'dataptr' not provided by package 'Rcpp'
What should I do?
After a while, I got it.
1) Reinstall the latest version of Rcpp is the solution.
2) If you are not using lme4, but you also have this problem ("function 'dataptr' not provided by package 'Rcpp'") in combination with dyn.load(), it might be worth noting do not forget to include
library(Rcpp)
or
require(Rcpp)
on your code before
dyn.load("your_shared_lib.so")
Source:
building_shared_libs_with_Rcpp
I am new to R. I encountered an error when I wanted to use the auto.arima function. The message was:
could not find function "auto.arima"
I've installed the forecast package. I'm using R2.14.1 version and forecast 3.16 in windows 7 operating system. What can I do?
If I could use the auto.arima function in R and get the best result model, I want to call the auto.arima method in my Java project. How would I use the R library in java project?
As the others pointed out: You have downloaded the package with install.packages() or from the menu but you did not load the package. This is done by library(forecast) or require(forecast). You can obtain single functions as well with the command: package::function() just like: forecast::auto.arima(). So much for a little clarification. If you need a graphical user interface (it makes life easier) check out Rstudio Rstudio or R commander install.packages(Rcmdr) or rJava proposed by Zach.
As #Jeromy Anglim says: library(forecast)
http://www.rforge.net/rJava/
When installing, make sure you mark the "Install Dependencies" option.
To use the auto.arima package, you need to install the package "quadprog". Install that package first and put forecast into library and you should be ok
You need to do the following steps
install.packages("xts")
install.packages("forecast", dependencies = TRUE)
library(forecast)
This worked for me.