Reputation: 19
i want to find the correlation of the adjuste of the curve plotted and the data, anyone knows how to do that?
library(drc)
S.alba.m1 <- drm(DryMatter~Dose, Herbicide, data = S.alba, fct = LL.4())
plot(S.alba.m1)
Upvotes: 0
Views: 550
Reputation: 270448
Use fitted
:
cor(S.alba$DryMatter, fitted(S.alba.m1))
Also check out the modelFit
function: ?modelFit
for various tests.
Upvotes: 0