From p.dalgaard at biostat.ku.dk  Sat Jun 17 08:39:37 2006
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: 17 Jun 2006 08:39:37 +0200
Subject: [Rd] bug in prcomp (PR#8994)
In-Reply-To: <20060616202300.066323F02E@slim.kubism.ku.dk>
References: <20060616202300.066323F02E@slim.kubism.ku.dk>
Message-ID: <x2lkrwz3o6.fsf@turmalin.kubism.ku.dk>

KjetilBrinchmannHalvorsen at gmail.com writes:

> The following seems to be an bug in prcomp():
...
>  > prcomp(test, scale.=TRUE, na.action=na.omit)
> Erro en svd(x, nu = 0) : infinite or missing values in 'x'
>  > prcomp(na.omit(test), scale.=TRUE, na.action=na.omit)

Nope. We've been here before: The _formula_method_ for prcomp takes an
na.action argument, the default method does not. If you read closely,
you'll see that this is in accordance with documentation. 


-- 
   O__  ---- Peter Dalgaard             ?ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



[Rd] bug in prcomp (PR#8994)
Peter Dalgaard