Learn R Programming

PHENIX (version 1.3.1)

pintsc.boot: size-controlled phenotypic integration bootstrap intervals

Description

This function estimates the confidence intervals of the phenotypic integration index controlling by a third variable using bootstrap.

Usage

pintsc.boot(traits, control=NA, replicates = 1000, verbose=FALSE)

Arguments

traits

a dataframe or a matrix object containing traits as columns and individuals as rows

control

a vector containing the variable to control by size.

replicates

a numeric, the number of randomizations (1000 by default).

verbose

a logic, if TRUE, values obtained during the bootstrap resampling are also reported.

Value

A matrix with two columns and nine rows. Columns contain information for the uncorrected and corrected indices whereas rows contain mean, median, standard deviation (SD), standard error (SE), lower and higher confidence interval at 99%, lower and higher confidence interval at 95%, and the number of randomizations.

Details

Rows containing missing values are removed.

See Also

pintsc, pint.boot, pintsc.jack

Examples

Run this code
# Dataset from Torices & M<U+00E9>ndez (2014)
# This data set represents the dry mass (in grams) of inflorescence components of the sunflower
# species Tussilago farfara. The inflorescences were dissected in 'SCAPE', 'RECEPTACLE', 'MALEFL'
# (male flowers), 'OVAR' (reproductive part of female flowers), and 'RAYS' (the petaloid ray of
# female flower). Furthermore in the last column the total weight of the inflorescence is added
# 'TOTALSIZE'

data(tussilago)

# Iit is mandatory to define the "control" variable. Otherwise, it gives an error:
# pintsc.boot(tussilago, 5000)
pintsc.boot(traits=tussilago[,1:5], replicates=100, control=tussilago[,6])
# The phenotypic integration index intervals do not include 0.
# For faster execution, we used 100 replicates in this example.
# For real data set increase this number:
# pintsc.boot(traits=tussilago[,1:5], replicates=5000, control=tussilago[,6])

Run the code above in your browser using DataLab