Re: [R] Function not working as I'd like

2013-10-23 Thread smugg55
Could you please show me what the code should be then? -- View this message in context: http://r.789695.n4.nabble.com/Function-not-working-as-I-d-like-tp4678878p4678898.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-projec

Re: [R] Function not working as I'd like

2013-10-23 Thread peter dalgaard
--Original Message- > From: David Carlson [mailto:dcarl...@tamu.edu] > Sent: Wednesday, October 23, 2013 1:58 PM > To: 'smugg55'; 'r-help@r-project.org' > Subject: RE: [R] Function not working as I'd like > > Your problem is here > > ninetyonecl

Re: [R] Function not working as I'd like

2013-10-23 Thread David Carlson
3 1:58 PM To: 'smugg55'; 'r-help@r-project.org' Subject: RE: [R] Function not working as I'd like Your problem is here ninetyoneclaims$total.chg>q That produces a logical vector of TRUE/FALSE values, but the length of the vector stays the same even though the number

Re: [R] Function not working as I'd like

2013-10-23 Thread David Carlson
ociate Professor of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of smugg55 Sent: Wednesday, October 23, 2013 9:25 AM To: r-help@r-project.org Subject: [R] Function n

[R] Function not working as I'd like

2013-10-23 Thread smugg55
Hey all, So I wrote/borrowed some code (no, I'm not trying to claim all of the work I've done below as my own). Ideally what I'd like the code to do is calculate ep for each iteration of q. Here's the code: > gpdriskmeasures = function(x , prob = > c(0,.1,.2,.25,.3,.4,.5,.6,.7,.75,.8,.9,.95,.99))