-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
A comment to the list (last in this thread) suggested problems with a bootstrap with data binned in the field. We don't have data of this type in our "tame" class of data shipped with Distance, so I manufactured one from the minke data set.
library(Distance)
data(minke)
# invent group size for each detection
# minke$size <- dsims:::rztpois(99, 2)
# convert exact distances into bins
vals <- seq(0,2,.2)
minke$bin <- cut(minke$distance, breaks=seq(0, 2, .2), right=FALSE, labels=FALSE)
minke$distbegin <- vals[minke$bin]
minke$distend <- vals[minke$bin+1]
# remove exact distances
minke$distance <- NULL
mod1 <- ds(minke)
bootout <- bootdht(mod1, flatfile=minke, nboot=50)
bootout
data frame with 0 columns and 0 rows
Bootstrap runs instantaneously and produces no results. I think that implies bootstrapping cannot be done for data of this type. I classify as a bug.
One would think this bug would have come to the surface with CTDS where data are also binned, but checking vignette, seems data are recorded as exact distances (there is a column in the data labelled distance) and binned during analysis.
@lenthomas
Reactions are currently unavailable