Robin,

I still don't know what the problem is, but your example works on my
R-2.3.0pat (created on 4/24/2006).  You may want to try the patched version
if you are not already running it.

Thanks,

Roger

> x <- 1:10
> y <- 10:1
> summary(lm(x~y))

Call:
lm(formula = x ~ y)

Residuals:
                   Min                     1Q                 Median
-0.0000000000000007998 -0.0000000000000005271 -0.0000000000000002555
                    3Q                    Max
 0.0000000000000006438  0.0000000000000009573

Coefficients:
                           Estimate              Std. Error            t
value
(Intercept) 11.00000000000000000000  0.00000000000000047274
23268659197056500
y           -0.99999999999999978000  0.00000000000000007619-13125293946147946
                       Pr(>|t|)
(Intercept) <0.0000000000000002 ***
y           <0.0000000000000002 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Residual standard error: 0.000000000000000692 on 8 degrees of freedom
Multiple R-Squared:     1,      Adjusted R-squared:     1
F-statistic: 1.723e+32 on 1 and 8 DF,  p-value: < 0.00000000000000022




On 4/27/06, Robin Hankin <r.hankin@noc.soton.ac.uk> wrote:
>
> Hi Roger
>
> good point.  I can reproduce the error much more simply:
>
>
>
> > x <- 1:10
> > y <- 10:1
> > summary(lm(x~y))
>
> Call:
> lm(formula = x ~ y)
>
> Residuals:
>
> *** caught bus error ***
> address 0x18, cause 'invalid alignment'
>
> Traceback:
> 1: sort(x, partial = unique(c(lo, hi)))
> 2: quantile.default(resid)
> 3: quantile(resid)
> 4: structure(quantile(resid), names = nam)
> 5: print.summary.lm(list(call = lm(formula = x ~
> [snip]
>
> On 27 Apr 2006, at 15:44, roger bos wrote:
>
> > I don't know if this is causing the error, by in your traceback I
> > saw sort()
> > was used and sort now removes all the attributes when it sorts.  I
> > used to
> > use sort() to sort dates in character format and now it turns them
> > into
> > integers and is breaking all my code.  The problem with upgrading
> > is your
> > never know what the end result will be on your code.  Check and see
> > if your
> > data needs the attributes to remain in order to function properly.
> >
> >
> >
> > On 4/27/06, Robin Hankin <r.hankin@noc.soton.ac.uk> wrote:
> >>
> >> Hi
> >>
>
> --
> Robin Hankin
> Uncertainty Analyst
> National Oceanography Centre, Southampton
> European Way, Southampton SO14 3ZH, UK
> tel  023-8059-7743
>
>

	[[alternative HTML version deleted]]

