refit_boots {phyr} | R Documentation |
Refit bootstrap replicates that failed to converge in a call to cor_phylo
Description
This function is to be called on a cor_phylo
object if when 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.
Usage
refit_boots(cp_obj, inds = NULL, ...)
## S3 method for class 'cp_refits'
print(x, digits = max(3, getOption("digits") - 3), ...)
Arguments
cp_obj |
The original |
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 |
... |
Arguments that should be changed from the original call to |
x |
an object of class |
digits |
the number of digits to be printed. |
Value
A cp_refits
object, which is a list of cor_phylo
objects
corresponding to each matrix in <original cor_phylo object>$bootstrap$mats
.
Methods (by generic)
-
print
: printscp_refits
objects