F.cjs.gof( cjsobj, resid.type="pearson", rule.of.thumb = 2, HL.breaks = "deciles" )
F.cjs.estim
resid.type
= 'pearson' produces
Pearson residuals. resid.type
= 'deviance' produces deviance residuals.
Anything other than 'deviance' gives you Pearson residuals.rule.of.thumb
= 2, the expected count in a cell has to be greater than
2 in order for the cell to be included in the overall Chi-square statistic for
that table. No pooling of cells is done. Cells with expected values less than
rule.of.thumb
are dropped.0.1 * n
expected values
are in each of 10 cells. t4.table
by
summing the chi-square contributions over cells that meet the rule.of.thumb
. rule.of.thumb
minus 1.t5.table
by
summing the chi-square contributions over cells that meet the rule.of.thumb
.rule.of.thumb
minus 1.The other derived GOF tests computed here use h(ij) and its expected value Psi(ij). Test 4 sums observed and expected over individuals. Test 5 sums observed and expected over occasions. The other 3 tests were borrowed from logistic regression by viewing h(ij) as a binary response, and Psi(ij) as its expected value.
F.cjs.estim
, print.cjs
data(dipper.histories)
xy <- F.cjs.covars( nrow(dipper.histories), ncol(dipper.histories) )
for(j in 1:ncol(dipper.histories)){ assign(paste("x",j,sep=""), xy$x[,,j]) }
dipper.cjs <- F.cjs.estim( ~x2+x3+x4+x5+x6, ~x1+x2+x3+x4+x5, dipper.histories )
dipper.cjs.gof <- F.cjs.gof( dipper.cjs )
print(dipper.cjs.gof)
Run the code above in your browser using DataLab