[R] Fill in a pdf with colour

2012-11-18 Thread nany23
Good morning, I have a sampled probability density function and I have to fill in with colour a fraction of the total area beneath the curve (e.g. the 50% of the total area beneath the curve). I would like to know which is the simplest way to do this. Thank you for answering Best regards Nany23

Re: [R] Numerical integration

2011-07-01 Thread nany23
thank you very much for your suggestion! I tried to do that with the psf I need to use: the 3 parameters Lognormal. I did that with a single xstar and a single triplet of parameters to check it works.[I put some numbers to make it woks , but actually they comes from statistical analysis] /#

Re: [R] Numerical integration

2011-07-01 Thread nany23
thanks for the Italian! I apologize for my previuos explanation which was not clear actually there are two k parameters, so I change one them; let's put it this way /# these are the 3 parameters a- 414.566 b- 345.5445 g- -0.9695679 xstar- 1397.923 *m-100* #I create a vector pars

[R] Numerical integration

2011-06-29 Thread nany23
Hello! I know that probably my question is rather simple but I' m a very beginner R-user. I have to numerically integrate the product of two function A(x) and B(x). The integretion limits are [X*; +inf] Function A(x) is a pdf function while B(x)=e*x is a linear function whose value is equal