Plotting generic distributions using "distr" package

Z_K <- AbscontDistribution(
  d = function(x) (2*3*2*1*(x^(2-1))*((1-x^2)^(1-1))*
    exp(3)-1, withStand = T)
The above is a code of a custom distribution, I want to plot the cdf, pdf and quantile functions but i am not getting a smooth curve. I have attached the plot I am getting, please how can i get a smooth curve

It seems that because of the algebra your function always evaluates to -1 regardless of x, so the distribution you want to push through it is irrelevant ?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.