I have the dataframe below
d50<-structure(list(VOT = c("VOT 0", "VOT 5", "VOT 10", "VOT 15",
"VOT 20", "VOT -10", "VOT -20", "VOT -30", "VOT -40", "VOT -50",
"VOT -60", "VOT 0", "VOT 5", "VOT 10", "VOT 15", "VOT 20", "VOT -10",
"VOT -20", "VOT -30", "VOT -40", "VOT -50", "VOT -60", "VOT 0",
"VOT 5", "VOT 10", "VOT 15", "VOT 20", "VOT -10", "VOT -20",
"VOT -30", "VOT -40", "VOT -50", "VOT -60", "VOT 0", "VOT 5",
"VOT 10", "VOT 15", "VOT 20", "VOT -10", "VOT -20", "VOT -30",
"VOT -40", "VOT -50", "VOT -60", "VOT 0", "VOT 5", "VOT 10",
"VOT 15", "VOT 20", "VOT -10"), response = c(0, 0, 0, 0, 0, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1)), row.names = c(NA, -50L), class = c("tbl_df", "tbl", "data.frame"
))
and Im trying to
library(drc)
# Fit a logistic regression model to the data
fit <- drm(response ~ VOT, data = d50, fct = LL.4())
but I get:
Error in optim(startVec, opfct, hessian = TRUE, method = optMethod, control = list(maxit = maxIt, :
non-finite value supplied by optim
Error in drmOpt(opfct, opdfct1, startVecSc, optMethod, constrained, warnVal, :
Convergence failed