normal_survival: Calculate survivability probabilities using a scaled normal...

View source: R/gs.R

normal_survivalR Documentation

Calculate survivability probabilities using a scaled normal distribution.

Description

For a given optimum phenotype and surivival variance, calculate survival probabilities from a normal distribution.

Usage

normal_survival(phenotypes, opt_pheno, var, max.survival = 0.5, ...)

Arguments

phenotypes

numeric. Vector of phenotypes.

opt_pheno

numeric. Optimum phenotype.

var

numeric. Variance of surivial distribution.

max.survival

numeric. Maximum possible survival probability.

Details

Surival probabilities are given by pnorm. For values above the optimum phenotype, the surivial is given by 1 - the resulting value. If a maxium survival other than 0.5 is given, the surivivals are scaled such that individuals with the optimum phenotype will have the provided survival probability.


hemstrow/GeneArchEst documentation built on June 10, 2025, 5:06 a.m.