data(shoots)
attach(shoots)
# Choose a species
# 1: Phyllostachys iridescens; 2: Phyllostachys mannii;
# 3: Pleioblastus maculatus; 4: Sinobambusa tootsik
ind <- 4
x1 <- x[Code == ind]
y1 <- y[Code == ind]
dev.new()
plot(x1, y1, cex=1.5, cex.lab=1.5, cex.axis=1.5, xlab="Time (days)", ylab="Height (cm)")
# \donttest{
delta0 <- c(0.5, 1, 2, 5, 10, 20)
ini.val <- list(600, 25, 0, 40, delta0)
resu1 <- fitsigmoid(MLRFE, x=x1, y=y1, ini.val=ini.val, simpver=NULL,
fig.opt=TRUE, control=list(reltol=1e-20, maxit=20000),
subdivisions = 100L, rel.tol=.Machine$double.eps^0.25,
abs.tol=.Machine$double.eps^0.25, stop.on.error=TRUE,
keep.xy=FALSE, aux=NULL)
# }
graphics.off()
Run the code above in your browser using DataLab