I am using the "mcr" package for deming regression. When i try to use the functions
mc.analytical.ci()
mc.bootstrap()
i get an errer saying "could not find function "(one of the two functions above)" "
But I don't have any trouble using other functions, like
plotDifference()
Stangely they are not available, but the manual don't tell anything about not using them.
Anyway you can use them as:
mcr:::mc.analytical.ci()
Related
usually I use the tukey.add.test from the asbio package in order to check interaction between treatmest and block in ANOVA RCBD, the package is now archived so I can no longer use this function or anything from the package.
You guys know another function to check this interaction? Any suggestion?
Done, the agricolae::nonadditivity function does the same test with the exactly same p.values.
I am working on species distribution models and I am using the function sdm in package sdm to construct my models. I try to implement a blocked cross-validation using the function spatialBlock in the package BlockCV, but I don't seem to find how to pass on the result of spatialBlock to my sdm function in the sdm package.
Any ideas? thanks!
It doesn't seem that there is an option for it. There should be an argument that accepts the FoldIDs. A workaround is that you write it in a for loop like any other modelling method (see blockCV's vignette) if your goal of using spatial CV is model evaluation.
You can email the maintainer as well.
I'm really confused about regression models and functions in R. Here is my problem. I'm using the PLS package to make a model like Y~x. To do that I have to use 'plsr':
model=plsr(Y~X,ncomp=10,data=df1,center=TRUE, scale=TRUE, validation="LOO")
I couldn't find the source of the 'plsr' in the PLS source code but in the help document it says it refers to 'mvr{pls}' which I could find it. first is 'plsr' a function or model.. in the R terminology? is it built in R? and how does it refer to 'mvr' function in pls package?
Thanks
I want to determine the optimal number of clusters with R using the gap statistics in the following way
library(cluster)
clusGap(datamatrix, FUN=kmeans, K.max=10, B=10)
However I get the error
Error: could not find function "clusGap"
What does this mean? I have the cluster package because I can use the other functions. Was this function removed or do I do something wrong?
I had an old version of the cluster package.
I'm using the randomForest package (v 4.6-7) in R (v 2.15.3) and can easily use the function randomForest to create a model. However, when I try to predict on my test set, the predict.randomForest function cannot be found. I've also tried plotting with plot.randomForest only to get the same error, "could not find function."
I've already tried reinstalling the package (figuring maybe it was out of date) and made sure the spelling is absolutely correct. I cannot figure out what's causing this error, any ideas?
It appears that the functions of interest are not exported from the package.
If you use ls(package:randomForest) you'll get a list of the exported functions.
If you want to see all the functions available the use: ls(getNamespace("randomForest"), all.names=TRUE). Thanks #Joshua.
You'll see the functions you want there.
In order to refer to one of them explicitly, use: randomForest:::predict.randomForest()
or just make a object which inherits the class 'randomForest' and call predict() on it directly.