Detailed description |
I was not able to install distr package from cran, so I could install the latest development release from the readonly mirror at github. distr version is 2.6.2. But when I tried to run the code below, I'm getting an error.
library(distr)
library(stats)
mc0 <- c(0.08844446,0.1744455,0.1379778,0.1209769,0.1573065,0.1134463,0.2074027)
rv <-UnivarMixingDistribution(Norm(486.4255, 53.24133),
Norm(664.0713, 3.674773),
Norm(669.0484, 4.101381),
Norm(677.1753, 4.869985),
Norm(683.2635, 7.288175),
Norm(727.6229, 37.64198),
Norm(819.2011, 57.06655),
mixCoeff=mc0/sum(mc0))
Error in q(object) :
could not find symbol "status" in environment of the generic function
R> sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-apple-darwin16.6.0 (64-bit)
Running under: macOS Sierra 10.12.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /opt/local/Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices datasets utils methods base
other attached packages:
[1] distr_2.6.2 SweaveListingUtils_0.7.7 sfsmisc_1.1-1
[4] startupmsg_0.9.4 lintr_1.0.1
loaded via a namespace (and not attached):
[1] MASS_7.3-47 compiler_3.4.1 lazyeval_0.2.0 magrittr_1.5 tools_3.4.1 rex_1.1.1 |
|