
Refit bootstrap replicates that failed to converge in a call to cor_phylo
Source: R/cor_phylo.R
refit_boots.RdThis function is to be called on a cor_phylo object if one or more bootstrap
replicates fail to converge.
It allows the user to change parameters for the optimizer to get it to converge.
One or more of the resulting cp_refits object(s) can be supplied to
boot_ci along with the original cor_phylo object to calculate confidence
intervals from only bootstrap replicates that converged.
Arguments
- cp_obj
The original
cor_phyloobject that was bootstrapped.- inds
Vector of indices indicating the bootstraps you want to refit. This is useful if you want to try refitting only a portion of bootstrap replicates. By passing
NULL, it refits all bootstrap replicates present incp_obj$bootstrap$mats. If, in the original call tocor_phylo,keep_bootswas set to"fail", then any successful replicates cannot be refit here. An error will be thrown if you useindsto request a successful rep to be refit whenkeep_bootswas set to"fail". Any bootstrap replicates not present inindswill haveNAin the output object. Defaults toNULL.- ...
Arguments that should be changed from the original call to
cor_phylo. Thebootargument is always set to0for refits because you don't want to bootstrap your bootstraps.- x
an object of class
cp_refits.- digits
the number of digits to be printed.