If you set range of x in [0, something ] for for a function that goes to
infinity for x=0, then what do you expect?
> On Mar 10, 2014, at 7:30 AM, Levi Robinson wrote:
>
> I wrote the code to graph a chi-squared density function, shade the
> percentile, and point to the CV, but it has a few is
I am far too lazy to go through all your rather complicated code, but my
basic impression is that you are re-inventing quite a few wheels.
Just to get a plot of the density function you can simply do, e.g.:
plot(function(x){dchisq(x,1)},0,qchisq(0.999,1))
I can't see why you are fool
I wrote the code to graph a chi-squared density function, shade the
percentile, and point to the CV, but it has a few issues I can't seem to
resolve
1. It won't work at all for DF = 1 due to ylim going to infinity, but I
haven't been able to resolve this still after hours of trying.
2) The y-axis
3 matches
Mail list logo