File: princomprob.t

package info (click to toggle)
r-cran-robust 0.7-5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,548 kB
  • sloc: fortran: 11,898; ansic: 741; sh: 13; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# quick test for princompRob
{
	temp <- princompRob(stack.dat, estim = "mcd")

	all.equal(as.vector(temp$sdev), c(10.1604100898979,
		4.70159223508389,2.23466903449916,0.446761914065813),
		tolerance = 1.0e-5)
}


{
	temp <- princompRob(woodmod.dat, estim = "donostah", tune = .90,
					prob = .999, eps = .3)

	all.equal(as.vector(temp$sdev), c(0.130869619858481,0.0779173556583895,
		0.0754135389664265,0.0494762031133952,0.0123680308004224),
		tolerance = 1.0e-5)
}


{
	rm(temp)
	T
}