I'm having a question regarding the cvm.test included in the package dgof. I'd like to check whether my data is normally distributed using cvm.test (I'm using this test because I'm testing for another distribution as well, and aim to use the same method). I estimated the parameters from the data (I know that I have to approximate the p-value using Monte Carlo simulation), resulting in a estimate vector theta_n. Unfortunately, the following code does not work:
cvm.test(data, "pnorm", theta_n, theta_n)
The error I get is: 'arg' must be NULL or a character vector. What I really do not understand is that when I apply the ks.test of the very same package, everything works fine. Can anyone help? Thanks in advance!