[R] Ltsreg and nsamp="exact"

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jun 18 21:34:19 CEST 2003


Are subsets of your data collinear?

On Wed, 18 Jun 2003, Christopher Adolph wrote:

> 
> I'm trying to use least trimmed squares using ltsreg with nsamp="exact".
> When I use the following:
> 
> rg <- ltsreg(x,y,nsamp="exact")
> 
> I get:
> 
> Error in lqs.default(x, y, nsamp = "exact", method = "lts") :
>         NAs in foreign function call (arg 10)
> In addition: Warning message:
> NAs introduced by coercion
> 
> Incidentally, there are no missings in x or y, and when I run
> 
> rg <- ltsreg(x,y)
> 
> everything is fine.
> 
> Any ideas?
> 
> Thanks
> 
> Chris Adolph
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list