Goodness of fit test 'ncores' argument produces error if included or if left to default

133 views Asked by At

I (a novice) am trying to run a McKenzie-Bailey goodness of fit test on occupancy models using package AICcmodavg. No matter what I do I get an error regarding argument ncores which specifies how many of my computational cores to use in running the bootstraps. The package info says that if left blank it will default to 1 less than available cores. My computer has 4 cores. If I specify any number of cores (I've tried 0-4) I get an error that the argument is unused. If I do not specify ncores I get an error that it is missing. Code following, any suggestions appreciated :)

mb.gof.test(CamMod1, nsim = 1000, ncores = 3)

Error in statistic(object, ...) : unused argument (ncores = ncores)

mb.gof.test(CamMod1, nsim = 1000)

Error in parboot(mod, statistic = function(i) mb.chisq(i)$chi.square, : argument "ncores" is missing, with no default

0

There are 0 answers