[R] sample variance from simulation

Wacek Kusnierczyk Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Mon May 18 15:06:47 CEST 2009


Mike Lawrence wrote:
> why not simply
>
> vars=list()
> for (i in 1:1000) vars[[i]] = var(z[[i]])
>
>   

... or, much simpler,

    vars = sapply(z, var)

vQ




More information about the R-help mailing list