Kolmogorov-Smirnov, Cramer-von Mises and Anderson-Darling for the gamma

How I can do the Kolmogorov-Smirnov (one sample), Cramer-von Mises and Anderson-Darling for the gamma distribution in the Rstudio?
This is my try, but the results are incorrect also the Anderson-Darling and Cramer-von Mises this for normality test I want it for gamma.

#Kolmogorov-Smirnov Tests
library(stats)
ks.test(carsamp$veh_value, "pgamma", shape = a.est, scale = l.est)
# Anderson-Darling test
ad.test(carsamp$veh_value)
#Cramer-von Mises
library(nortest)
cvm.test(carsamp$veh_value)

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.