[R] (no subject)

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Jun 2 14:01:36 CEST 2003


Alicia Lopez wrote:

> I would be gratefulf if anybody can help me with this problem.  I have not
> a experience with R 
> language, actually this is my first job with it :
> 
> I have write some instructions for acomplish a simulation, and I have 36
> conditions 
> with 1000 iterations each one . The program runs without problems, but in
> the 19 nth 
> condition  gives and  error message (after running   some iterations of
> this condition)   
> is:
> 
> "Error in var(x, na.rm = na.rm) : missing observations in cov/cor"

So, presumably by former calculations, you got NAs in some data 
structure for which the variance is calculated.
You have to debug your code, if you don't know where the NAs come from.

Uwe Ligges


> Somebody would give me any clue about the origin of this error?
> There is any probability  that the origin of the problem is  the scarcitie
> of resources?
> (  I don´t understand how is possible a programming error).
> 
> Any help will be welcome.
> 
> 
> 
> 
> ---------------------------------------------------
> ALICIA LÓPEZ JÁUREGUI
>  
> 
>    DEPARTAMENTO DE PSICOLOGIA SOCIAL Y METODOLOGIA
>    FACULTAD DE PSICOLOGIA 
>    Avda. de Tolosa, 70
>    20018 DONOSTIA (SPAIN)
> 
>          TEL.: 943 / 018340   
>          E-MAIL: psplojaa at sc.ehu.es
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list