[Basta-users] rowSums(bd) error on DataCheck

Caroline Chong caroline.chong at anu.edu.au
Wed Sep 11 05:49:25 CEST 2013


Dear All
I have solved the individual sample names issue (re-ordering of the samples so they match across matrices...1, 2...n) so these are removed on running inputMat.

I look forward to any suggestions on solving or interpreting the rowSums(bd) error as per below....

many thanks,
best,
Caroline.

inputMat <- as.data.frame(cbind(birthDeath, Y[, -1], covMat[, -1]))
DataCheck(inputMat, studyStart = 1, studyEnd = 109, autofix = rep(1, 7), silent=FALSE)
Error in rowSums(bd) : 'x' must be numeric

print(inputMat)
 ID realROBSBIRTH realSENDEATH 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
1       1             0   2012-09-19 1 0 0 0 0 0 0 0 0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0
2       2             0   2012-09-19 1 0 0 0 0 0 0 0 0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0
3       3             0            0 1 0 0 0 0 0 0 0 0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0
4       4    2012-07-14            0 1 0 0 0 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/basta-users/attachments/20130911/68604ad9/attachment.html>


More information about the Basta-users mailing list