gnome_gee_simulation.Rd
Function to run generalized estimating equations (gee) models estimating cultural transmission and sibling interaction on simulated data
gnome_gee_simulation(
alpha = 0.05,
seed = NA,
standPGS = FALSE,
nmz = 4000,
ndz = 4000,
a = default_a,
c = default_c,
e = default_e,
ct = default_ct,
si = default_si,
x = default_x,
nloci = 100,
npgsloci = c(2, 5, 10, 15),
cmethod = "exchangeable"
)
Alpha used to calculate power
Set a seed if desired
Boolean to standardize the PGS
Sample size monozygotic twins
Sample size dizygotic twins
Additive genetic path coefficient
Shared environmental path coefficient
Unique environmental path coefficient
Cultural Transmission - Parent genotype to child phenotype
Sibling Interaction - Sibling 1 genotype to sibling 2 phenotype
Sibling Interaction at the phenotypic level
Number of diallelic loci
Number of loci comprising the PGS
Gee error covariance structure
List with data frame of power estimates and data frame of parameter estimates
gnome_gee_simulation(ct = .01, si = .025, npgsloci = 10)
#> [1] "Running simulation proportion of genetic variance explained by the PGS is: 0.1 ."
#> [1] "The factorial design has 1 setting(s)."
#> [1] 1
#> $power
#> nmz ndz a c e g b x PGS A p1 p2 p3
#> 1 4000 4000 0.6324555 0.5477226 0.5477226 0.01 0.025 0 0.1 0.9 0.14 0.185 0.06
#> p4 p5 p6 p7 p8 Smz Sdz
#> 1 0.108 0.127 0.15 0.054 0.079 0.04559689 0.0297855
#>
#> $params
#> nmz ndz a c e g b x PGS A e1 e2 e3
#> 1 4000 4000 0.6324555 0.5477226 0.5477226 0.01 0.025 0 0.1 0.9 0.025 0.061 0.01
#> e4 e5 e6 e7 e8 Smz Sdz
#> 1 0.05 0.029 0.063 0.01 0.05 0.04559689 0.0297855
#>