## compare two models
m1 <- pcrfit(reps, 1, 2, l4)
m2 <- pcrfit(reps, 1, 2, l5)
neill.test(m1)
neill.test(m2)
## using example from 'nls'
## Fails when replicates are given
DNase1 <- subset(DNase, Run == 1)
fm1DNase1 <- nls(density ~ SSlogis(log(conc), Asym, xmid, scal), DNase1)
neill.test(fm1DNase1)
## But works if replicates are removed
DNase2 <- DNase1[-c(2, 4, 6, 8, 10, 12, 14, 16),]
fm1DNase2 <- nls(density ~ SSlogis(log(conc), Asym, xmid, scal), DNase2)
neill.test(fm1DNase2)
Run the code above in your browser using DataLab