dgof Cramer-von-Mises test

Hey guys,
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[1], theta_n[2])

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!

Probably you already cracked your problem.
If not please include a minimal REPRoducible EXample so that we can redo your cvm.test and ks.test .

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.