View source: R/mhLoglikehood.r
lik_noSex | R Documentation |
This function calculates the likelihood for an individual based on Weibull distribution parameters without considering sex differentiation.
lik_noSex(
i,
data,
alpha,
beta,
delta,
gamma,
max_age,
baselineRisk,
BaselineNC,
prev
)
i |
Integer, index of the individual in the data set. |
data |
Data frame, containing individual demographic and genetic information. Must include columns for 'age', 'aff' (affection status), and 'geno' (genotype). |
alpha |
Numeric, Weibull distribution shape parameter. |
beta |
Numeric, Weibull distribution scale parameter. |
delta |
Numeric, shift parameter for the Weibull function. |
gamma |
Numeric, asymptote parameter (only scales the entire distribution). |
max_age |
Integer, maximum age considered in the analysis. |
baselineRisk |
Numeric vector, baseline risk for each age. |
BaselineNC |
Logical, indicates if non-carrier penetrance should be based on SEER data or the calculated non-carrier penetrance. |
prev |
Numeric, prevalence of the risk allele in the population. |
Numeric vector, containing likelihood values for unaffected and affected individuals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.