Calculates empirical age density distributions for different subgroups in the data, separated by sex and genetic testing status.
calculateEmpiricalDensity(
data,
aff_column = "aff",
age_column = "age",
sex_column = "sex",
geno_column = "geno",
n_points = 10000,
sex_specific = TRUE
)
A list of density objects for different subgroups (tested/untested, male/female)
A data frame containing the family data
Name of the affection status column
Name of the age column
Name of the sex column
Name of the genotype column
Number of points to use in density estimation
Logical; whether to calculate sex-specific densities