The verifyEmpiricalToTheoretical function does not accept a matrix as data input, even though the documentation for that function states that the data should be a matrix, character or list to be converted in a raw transition matrix.
To reproduce follow these steps:
Warnmeldungen:
1: In verifyEmpiricalToTheoretical(data = mc, object = theoreticalMc) :
The accuracy of the statistical inference functions has been questioned. It will be thoroughly investigated in future versions of the package.
2: In if (!(class(data) %in% c("matrix", "character", "numeric"))) stop("Error! Data should be either a raw transition matrix or \n either a character or a numeric element") :
Bedingung hat Länge > 1 und nur das erste Element wird benutzt
3: In if (class(data) %in% c("character", "numeric")) data <- createSequenceMatrix(stringchar = data) :
Bedingung hat Länge > 1 und nur das erste Element wird benutzt
This is due to the output of class(mc) which returns [1] "matrix" "array" instead of just "matrix", which the function expects.
The
verifyEmpiricalToTheoretical
function does not accept a matrix as data input, even though the documentation for that function states that the data should be amatrix, character or list to be converted in a raw transition matrix
. To reproduce follow these steps:This results in the following error:
This is due to the output of
class(mc)
which returns[1] "matrix" "array"
instead of just"matrix"
, which the function expects.