# library(devtools)
# install_github("OnofriAndreaPG/aomisc")
library(statforbiology)
data(metamitron)
#Fit nls grouped model
modNlin <- nls(Conc ~ A[Herbicide] * exp(-k[Herbicide] * Time),
start=list(A=rep(100, 4), k=rep(0.06, 4)),
data=metamitron)
tab <- summary(modNlin)
tab
# Retreive infos and make comparisons
coefs <- coef(modNlin)[5:8]
vcovMat <- vcov(modNlin)[5:8, 5:8]
cp <- pairComp(coefs, vcovMat, dfr = tab$df[2],
adjust = "none", reversed = FALSE)
cp$Letters
cp$pairs
Run the code above in your browser using DataLab