# NOT RUN {
data(stackloss)
L1median(stackloss)
L1median(stackloss, method = "HoCrJo")
# }
# NOT RUN {
<!-- %% more interesting stuff --> ../tests/L1med-tst.R -->
# }
# NOT RUN {
## Explore all methods:
m <- eval(formals(L1median)$method); allMeths <- m[m != "Brent"]
L1m <- sapply(allMeths, function(meth) L1median(stackloss, method = meth))
## --> with a warning for L-BFGS-B
str(L1m)
pm <- sapply(L1m, function(.) if(is.numeric(.)) . else .$par)
t(pm) # SANN differs a bit; same objective ?
# }
Run the code above in your browser using DataLab