Hi,
I'm attempting to use the bootdht function with a multiplier but I get error message:
in
fix.by(by.x, x) : 'by' must specify a uniquely valid column
I am unsure where I can add a column to satisfy this 'merge' function error message.
Any suggestions are appreciated.
Kind regards,
VB
my code:
# half-normal key function, no adjustments, disturbance covariate
hn16 <- ds(grig_adults,
truncation = truncate,
formula = ~ weather + mangrove,
transect = "point",
key = "hn",
adjustment = NULL,
convert.units = unit_conversion, er.method = 1)
#assign multiplier
availability = data.frame(rate = 0.546, SE = 0.190)
#create list for multiplier with appropriate names for the bootdht function
multiplier <- list(creation = availability)
#run bootstrap on best fitting model
fm_repeats0<-bootdht(model = hn16,
flatfile = grig_adults,
convert.units= unit_conversion,
nboot = 100,
summary_fun = bootdht_Nhat_summarize,
multipliers = multiplier)