Description Usage Arguments Value Output Examples
View source: R/SelectionDifferentials.R
differentials_bootstats
allows the user to calculate the standard deviations and confidence intervals for phenotypic selection differientials that are estimated using the differentials
function in psa
.
1 | differentials_bootstats(w, z, conf = 0.95, R = 2000, method = c(1,2,3,4))
|
|
Relative fitness. |
|
Phenotypic trait(s). Character values are not accepted. |
|
Confidence interval, with 95 percent confidence interval set as a default. See |
|
Number of bootstrap replicates. 2000 is set as the default. See |
|
Method to estimate the selection differential. 1 = covariance of relative fitness to the trait; 2 = differences in mean, variance, and covariance before and after selection; 3 = matrix algebra approach of phenotypic distributions before and after selection; 4 = ordinary least-squares regression of relative fitness against the trait. |
differentials_bootstats
returns a list of three objects (boot output, standard errors, and confidence intervals).
bootoutput
contains the estimates for the phenotypic selection differentials, bias, and standard errors using an "ordinary" resampling method (see the "sim" option in ?boot for more details).
se
contains the bootstrapped standard errors.
ci
contains the confidence intervals for four bootstrapping methods (basic, student, percent, and bca). See ?boot.ci for more details.
1 2 3 | data(BumpusMales)
differentials_bootstats(BumpusMales$w, scale(BumpusMales[,3:11]), method = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.