Calculations of Luck in Structured Population Models


[Up] [Top]

Documentation for package ‘luckieR’ version 0.1.0

Help Pages

calcDistLRO Distribution of lifetime reproductive output
calcDistLRONoEnv Distribution of lifetime reproductive output
calcDistLROPostBreeding Distribution of lifetime reproductive output
calcDistLROPostBreedingNoEnv Distribution of lifetime reproductive output
calcDistOffspringCohort The distribution of offspring types in a cohort produced at the stable population distribution
calcMoments Calculates the mean, the 2nd and 3rd non-central moments, and the skewness of a lifetime reward
distLifespanCondR2 Distribution of lifespan conditional on LRO
distLifespanCondR2NoEnv Distribution of lifespan conditional on LRO
distLifespanCondR2PostBreeding Distribution of lifespan conditional on LRO
distLifespanCondR2PostBreedingNoEnv Distribution of lifespan conditional on LRO
firstBreed Probability of breeding and age at first breeding
flatten Convert 4-d array to matrix
fundamental_matrix Calculate the fundamental matrix
makeCondFailureKernel Calculates the probability of not becoming successful before death and the transition kernel conditional on not becoming successful before death.
makeCondKernel calculates the probability of becoming successful before death and the transition kernel conditional on becoming successful before death.
makeM Make megamtrix
makeMCondLROThreshold Utility function for calculating a kernel conditional on having LRO meeting or exceeding a threshold
makeMCondLROThresholdPostBreeding Utility function for calculating a kernel conditional on having LRO meeting or exceeding a threshold
makePCondBreedDef3 Utility function for calculating a kernel conditional on breeding.
makePDef3 Utility function for calculating a kernel conditional on breeding.
make_AxT Make the size x #kids transition matrix
meanConditionalLifespan Mean Conditional Lifespan
meanConditionalTimes Compute conditional time to arriving in a state
meanLifespan Calculate mean lifespan
meanLRO Calculate mean lifetime reproductive output (LRO)
mk_B Make B matrix
mk_BPostBreeding Make B matrix for a post-breeding census
partitionVarSkewnessEnvVar Partitions variance and skewness of LRO
partitionVarSkewnessEnvVarAndTraits Partitions variance and skewness of LRO
partitionVarSkewnessEnvVarPostBreeding Partitions variance and skewness of LRO
partitionVarSkewnessNoEnvVar Partitions variance and skewness of LRO
partitionVarSkewnessNoEnvVarPostBreeding Partitions variance and skewness of LRO for a post-breeding census
popMeanVar Population mean and variance of any attribute
probRepro Probability of reproducing at least once, based on starting state
probTraitCondLRO Distribution of a trait conditional on LRO
probTraitCondLRONoEnv Distribution of a trait conditional on LRO
probTraitCondLROPostBreeding Distribution of a trait conditional on LRO
probTraitCondLROPostBreedingNoEnv Distribution of a trait conditional on LRO
p_xT Helper function used for calculating size x #kids transition matrices
skewLifespan Calculate skewness of lifespan
skewLRO Calculate skew in lifetime reproductive output
stable_dist Calculate the stable state distribution
traitAve Calculates an average over a user-provided distribution
traitMu3 Calculates the third central moment over a user-provided distribution
traitVar Calculates a variance over a user-provided distribution
unfold Convert a megamatrix to an array
unvec Convert a vector to a matrix
varConditionalLifespan Variance of Conditional Lifespan
varConditionalTimes Variance in conditional time to reach state i from state j
varLifespan Calculate variance of lifespan
varLRO Calculate variance in lifetime reproductive output
vec Convert a matrix to a vector