I'm was trying to use PCMFitMixed if for 2 different analyses and one thing that kept happening is I got this Warning message after it completes a run:
2: In matrix(P$mean[i[iP]], nrow = n, ncol = length(iP), ... :
data length exceeds size of matrix
3: In matrix(P$mean[i[iP]], nrow = n, ncol = length(iP), ... :
data length exceeds size of matrix
Though my data set was originally a matrix, It seems like I solved this issue (no more warning messages) by converting my data set to a matrix using the following step, which removes all the row and column names:
I'm was trying to use PCMFitMixed if for 2 different analyses and one thing that kept happening is I got this Warning message after it completes a run:
2: In matrix(P$mean[i[iP]], nrow = n, ncol = length(iP), ... : data length exceeds size of matrix 3: In matrix(P$mean[i[iP]], nrow = n, ncol = length(iP), ... : data length exceeds size of matrix
Though my data set was originally a matrix, It seems like I solved this issue (no more warning messages) by converting my data set to a matrix using the following step, which removes all the row and column names: