this is my first time posting a question here, so please forgive me if it is not clear enough or if I haven't supplied enough information.
I'm trying to load in the plm library (for panel regression) in R after having installed it and get the following error:
install.packages("plm")
library(plm)
R then gives me this error:
> library(plm)
error: package or namespace load failed for ‘plm’:
object of type 'closure' is not subsettable
My R version is 3.6.3
Any help would be much appreciated!
Please let me know if you need more info to help me solve the issue.
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
I have tried the following code
install.packages("MASS")
library(MASS)
?MASS
No documentation for ‘MASS’ in specified packages and libraries:
you could try ‘??MASS’
It seems R could not show the result I want, any idea about the mistake?
I am a beginner in R and I am supposed to make a model thanks to regression beta. I learned that I can use betareg() except that even when installing its package the R does not recognize it and displays me error:
Error: could not find function "betareg"
What could be the cause for that?
The error message you are getting typically arises when calling a function.
Before you can call a function, you have to install the package and load the library.
You can try this:
install.packages("betareg")
library(betareg)
and then call the function with relevant parameters
betareg()
There's an older post from a year ago, here, that touches upon a similar issue. Now I'm facing almost axactly the same issue as Bikash was approximately a year ago. However, the solution suggested there, does not seem to work in my case.
The error message when loading {sjPlot} with library(sjPlot) reads:
Error: package or namespace load failed for ‘sjPlot’
It also tells me (loosely translated from German):
Error: Object ‘asis_output’ not exported by 'namespace:knitr'
So whatever that means, I thought I try loading {knitr} first and then try loading {sjPlot} again. But I ran into the exact same error message...
Thanks in advance!
I am trying to read SAS dataset in R 3.0.1.
I have downloaded Hmisc package required to use sas.get function. But I am getting note as below:
Hmisc library by Frank E Harrell Jr
Type library(help='Hmisc'), ?Overview, or ?Hmisc.Overview')
to see overall documentation.
NOTE:Hmisc no longer redefines [.factor to drop unused levels when
subsetting. To get the old behavior of Hmisc type dropUnusedLevels().
Attaching package: ‘Hmisc’
Then I am using the following command:
sas.get(library = "C:\\SAS_dataset", member = "test", formats = FALSE, sasprog = sasprog)
Then the R goes in infinite loop and does not give output. Finally when i press "Esc", it terminates by giving an warning message saying
Warning message:
running command '"C:/program files/SAS/SAS 9.1/sas.exe" "C:\Users\TEJASW~1.ABH\AppData\Local\Temp\RtmpML87zC\SaS13c41642d38.3.sas" -log "_temp_.log"' had status 10708
I tried to find the reason for the same, but all in vain.
I don't understand the reason for this. Is it due to some note given by Hmisc package or something else?
Also I noted that I am facing this problem for latest version i.e. 3.0.1 only. Whereas I was able to read the SAS dataset with the same commands in version 2.15.1.
Can any one help me to solve this problem.
Thanks in advance.
Regards,
Tejasweeni
If you have SAS, you can always export your data to a CSV file and read in R using read.table() or read.csv(). I think this is often the best solution.