On May 8, 2013, at 20:38 , Robert Baer wrote:

> On 5/6/2013 7:02 AM, arun wrote:
>   stErr<- sd(vec1)/sqrt(length(vec1))
> 
> Or possibly,
> 
> stErr<- sd(vec1)/sqrt(!is.na(vec1))
> 

You probably intended sqrt(sum(!is.na(...))).

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd....@cbs.dk  Priv: pda...@gmail.com

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to