Description Usage Arguments Details Value Author(s) References

This function simulates the asymptotic *P*-value for the Cox
score statistic under a specified genetic risk model

1 | ```
sim.snp.expsurv.sctest(n, gtprev, lam, a, b, ztest, diag = FALSE)
``` |

`n` |
Sample size |

`gtprev` |
Relative genotypic frequency |

`lam` |
Exponential hazard rates for conditional time to event survival functions |

`a` |
Lower bound for the uniform censoring bound |

`b` |
Upper bound for the uniform censoring bound |

`ztest` |
Assumed genetic model |

`diag` |
Set to TRUE if print out of diagnostics is desired |

This function simulates the genotypes 0, 1 or 2 from relative
genotypic frequencies. Then conditional on genotype, it simulates the
time to event from an exponential distribution with parameter
*λ_g*. The censoring time is drawn from a uniform law on the
interval *[a,b]*.
It is not intended to be called directly by the user.
To conduct power calculations, use `sim.snp.expsurv.power`

or the convenience wrapper function `survSNP.power.table`

.

A vector of length 2 containing the observed event rate and the
asymptotic *P*-value for the Cox score test

Kouros Owzar, Zhiguo Li, Nancy Cox, Sin-Ho Jung and Chanhee Yi

Kouros Owzar, Zhiguo Li, Nancy Cox and Sin-Ho Jung. Power and Sample Size Calculations for SNP Association Studies with Censored Time-to-Event Outcomes. http://onlinelibrary.wiley.com/doi/10.1002/gepi.21645/abstract

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.