actually this is what worked

bootmean(na.omit(X$Y), conf = 90,nrep = 1000)



From:
"Nordlund, Dan (DSHS/RDA) [via R]" 
<ml-node+s789695n4643080h5@n4.nabble.com>
To:
grond <agellis@usgs.gov>
Date:
09/13/2012 05:43 PM
Subject:
Re: Missing Values



> -----Original Message----- 
> From: [hidden email] [mailto:r-help-bounces@r- 
> project.org] On Behalf Of Jeff Newmiller 
> Sent: Thursday, September 13, 2012 1:46 PM 
> To: grond; [hidden email] 
> Subject: Re: [R] Missing Values 
> 
> Don't give it any. Instead of banks$two, use na.omit(banks$two). 
> ----------------------------------------------------------------------- 
> ---- 
> Jeff Newmiller                        The     .....       .....  Go 
> Live... 
> DCN:<[hidden email]>        Basics: ##.#.       ##.#.  Live 
> Go... 
>                                       Live:   OO#.. Dead: OO#.. 
> Playing 
> Research Engineer (Solar/Batteries            O.O#.       #.O#.  with 
> /Software/Embedded Controllers)               .OO#.       .OO#. 
> rocks...1k 
> ----------------------------------------------------------------------- 
> ---- 
> Sent from my phone. Please excuse my brevity. 
> 
> grond <[hidden email]> wrote: 
> 
> >I am using bootstrap and cannot figure how to tell R to ignore missing 
> >values 
> >(NA) 
> > 
> >I tried this syntax and it did not work.  The name of the file is 
> banks 
> >the 
> >column two. 
> > 
> >bootmean(banks$two,na.rm = True, conf = 90,nrep = 1000) 
> > 
> > 
> > 
> > 

You haven't said where you got the function bootmean() and you have not 
provided a reproducible example, so I can't do any testing.  Jeff's 
solution may work for you.  However, in your call to bootmean you have 
na.rm=True.  R is case sensitive.  True is not equal to TRUE.  Try 
changing your code to 

bootmean(banks$two, na.rm = TRUE, conf = 90,nrep = 1000) 


Hope this is helpful, 

Dan 

Daniel J. Nordlund 
Washington State Department of Social and Health Services 
Planning, Performance, and Accountability 
Research and Data Analysis Division 
Olympia, WA 98504-5204 


______________________________________________ 
[hidden email] 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. 



If you reply to this email, your message will be added to the discussion 
below:
http://r.789695.n4.nabble.com/Missing-Values-tp4643059p4643080.html 
To unsubscribe from Missing Values, click here.
NAML 





--
View this message in context: http://r.789695.n4.nabble.com/Missing-Values-tp4643059p4643096.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]


