[R] Least Absolute Deviation
huan.huang@bnpparibas.com
huan.huang at bnpparibas.com
Wed Jan 15 18:20:03 CET 2003
Dear all,
I try to fit least absolute deviation (LAD) regression with R. I couldn't
find any command to carry out LAD. What I am doing now is using nlm() and
setting the function argument to minimize the sum of the absolute
deviation. But for some data it keeps giving out the error message: Error
in nlm(absdev, b.start) : non-finite value supplied by nlm. (there is no na
in my dataset.)
I am wondering if there is some function I can do it directly.
Many thanks.
Huan
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.
More information about the R-help
mailing list