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
)
Numeric vector, containing likelihood values for unaffected and affected individuals.
Integer, index of the individual in the data set.
Data frame, containing individual demographic and genetic information. Must include columns for 'age', 'aff' (affection status), and 'geno' (genotype).
Numeric, Weibull distribution shape parameter.
Numeric, Weibull distribution scale parameter.
Numeric, shift parameter for the Weibull function.
Numeric, asymptote parameter (only scales the entire distribution).
Integer, maximum age considered in the analysis.
Numeric vector, baseline risk for each age.
Logical, indicates if non-carrier penetrance should be based on SEER data or the calculated non-carrier penetrance.
Numeric, prevalence of the risk allele in the population.