[R] MASS mve_fits mycov.rob
Charlie Brown
charliethebrown77 at gmail.com
Mon Sep 16 21:54:26 CEST 2013
I missed that, thank you.
This is from a function someone else wrote, and they modified
cov.rob(); I will look through what they have done.
Thank you.
On Mon, Sep 16, 2013 at 2:05 PM, arun <smartpink111 at yahoo.com> wrote:
> Hi,
> library(MASS)
> Couldn't find the function ?mycov.rob()
> mycov.rob(mtcars[,1:3],method="mcd")
> #Error: could not find function "mycov.rob"
>
> ??mycov.rob
> No vignettes or demos or help files found with alias or concept or
> title matching ‘mycov.rob’ using regular expression matching.
>
>
> Though,
> cov.rob(mtcars[,1:3],method="mcd")
> $center
> mpg cyl disp
> 18.528571 6.380952 225.295238
>
> $cov
> mpg cyl disp
> mpg 10.676143 -4.901429 -248.3544
> cyl -4.901429 2.647619 127.3619
> disp -248.354357 127.361905 7469.5075
>
> $msg
> [1] "106 singular samples of size 4 out of 2000"
>
> $crit
> [1] 7.701039
>
> $best
> [1] 1 2 3 6 7 10 11 12 13 14 21 22 23 24 29 30 31 32
>
> $n.obs
> [1] 32
> sessionInfo()
> R version 3.0.1 (2013-05-16)
> Platform: x86_64-unknown-linux-gnu (64-bit)
>
> locale:
> [1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C
> [3] LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8
> [5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8
> [7] LC_PAPER=C LC_NAME=C
> [9] LC_ADDRESS=C LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] grid stats graphics grDevices utils datasets methods
> [8] base
>
> other attached packages:
> [1] zoo_1.7-10 rlme_0.2 quantreg_5.02 SparseM_1.03
> [5] MASS_7.3-28 lattice_0.20-15 stringr_0.6.2 reshape2_1.2.2
>
> loaded via a namespace (and not attached):
> [1] magic_1.5-4 Matrix_1.0-12 mgcv_1.7-24 nlme_3.1-110 plyr_1.8
> [6] tcltk_3.0.1 tools_3.0.1
>
> A.K.
>
>
>
>
>
>
> ----- Original Message -----
> From: Charlie Brown <charliethebrown77 at gmail.com>
> To: "r-help at r-project.org" <r-help at r-project.org>
> Cc:
> Sent: Monday, September 16, 2013 2:05 PM
> Subject: [R] MASS mve_fits mycov.rob
>
> Hello,
> In R 3.0.1, I get the following warning that I do not get in R 2.15.3:
>
> data(mtcars)
> mycov.rob(mtcars[,1:3], method="mcd")
> Error in .C("mve_fitlots", as.double(x), as.integer(n), as.integer(p), :
> "mve_fitlots" not available for .C() for package "MASS"
>
> It seems like there was a change in MASS? Can someone please help me
> determine how to to use mycov.rob(x, method="mcd") in R 3.0.1 (I am
> guessing that this includes anything that uses mve_fitlots...
>
> Thanks.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list