Re: [R] area under the curve

2012-11-18 Thread Uwe Ligges
On 18.11.2012 18:37, Rlotus wrote: I have function y=x^5+x^8+ (cos(x))^3; I need to get random x; random y; and after that determine whether y below or above the given function. I tried a lot of version. but my code even doesnt workplz help with this expressions ;( I am a begiiner in R

Re: [R] area under the curve

2012-11-18 Thread Uwe Ligges
Which message are you referring to? Please quote. And please read the posting guide to the mailing list that asks you to do that! On 18.11.2012 18:55, Rlotus wrote: I mean i need to put random x in equation in order to determine value y. i used runifbut it doesn work... y= (runif(0,1))^

Re: [R] area under the curve

2012-11-18 Thread Rlotus
I mean i need to put random x in equation in order to determine value y. i used runifbut it doesn work... y= (runif(0,1))^5+(runif(0,1))^8+((cos runif(0,1)))^3; (<=it doesnt work properly) now i have value y need to determine whether y is above or below my function. so after that y1=r

[R] area under the curve

2012-11-18 Thread Rlotus
I have function y=x^5+x^8+ (cos(x))^3; I need to get random x; random y; and after that determine whether y below or above the given function. I tried a lot of version. but my code even doesnt workplz help with this expressions ;( I am a begiiner in R -- View this message in context: http:

Re: [R] area under the curve

2011-08-15 Thread Rolf Turner
On 16/08/11 05:07, Mariana Varela wrote: HI there, I have been trying to use a code posted on R help to be able to calculate area under the curve for complicated data points and there seems to be an issue with the code: no "b" object found. I am not a good R user and can't find were the problem

Re: [R] area under the curve

2011-08-15 Thread Comcast
Why re-invent? Use lrm in rms. -- David Sent from my iPhone On Aug 15, 2011, at 10:07 AM, Mariana Varela wrote: > HI there, I have been trying to use a code posted on R help to be able to > calculate area under the curve for complicated data points and there seems to > be an issue with th

[R] area under the curve

2011-08-15 Thread Mariana Varela
HI there, I have been trying to use a code posted on R help to be able to calculate area under the curve for complicated data points and there seems to be an issue with the code: no "b" object found. I am not a good R user and can't find were the problem is. Any help? Thanks!! This is the code (