I have data before/after that i want to analyse using McNemar test.
before <-c(0,0,0,0,0,0)
after<-c(1,0,0,1,0,0)
table(before,after)
after
before 0 1
0 4 2
As you probably already guesses problem with that table is that I'm missing theoretically possible "1" level in "before".
Is there a good clean way of creating that additional row with all zeros ?