Displaying 1 result from an estimated 1 matches for "robustm".
Did you mean:
robust
2013 Jan 04
4
Iterative loop using "repeat"
Hi,
I'm Marianna
I'm trying to apply the command "repeat" to my matrix but the repeat process
doesn't work as I would.
In particular I would like to apply the function robustm () _that I have
created_ to my two matrices, if the difference between the two matrices is
less than 0.001, R give me back the last matrix.
The code thus created allows me to repeat the process only on the first two
matrices:
function(x) {
for(i in 1:10)
repeat {
b<-robustm(S_X)
b2<-robustm...