Calling R from Matlab, library(copula)
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I want to call an R script in Matlab and wrote the following script in MATLAB:
CurrentDirectory=strrep(pwd,'\','/'); eval(['!C:\Programs\R\R-3.1.1\bin\i386/Rscript "' CurrentDirectory '/GOF.R"']) % using R for GOF test
The R script (GOF.R) calls "copula" library to run a goodness-of-fit test for different copula functions. MATLAB gives me the following error:
Error in dim(copula) : could not find function "loadMethod" Calls: gofCopula -> stopifnot -> dim Execution halted
The strange thing is that when I run GOF.R in R program, the code runs without any errors.
Please help.
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Copula Distributions and Correlated Samples in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!