Skip to content

Help on implementing a function

2 messages · F, Sarah Goslee

F
#
I have a vector which is an interval on which I'm trying to calculate the
values of the following function for a probability distribution:

http://r.789695.n4.nabble.com/file/n3163464/Equation.jpg 

I want to generate a k-size sample of values following the distribution
above.

For some reason, I'm getting problems such as NAs o NaNs...

Can any one give me some help on this one?

thanks
#
We really can't help unless you give us a repeatable example of
what you've done.

Sarah
On Fri, Dec 24, 2010 at 2:21 PM, F <felbuch at yahoo.com.br> wrote: