View source: R/uncondExact2x2.R

pickTstat | R Documentation |

Called from `uncondExact2x2`

.

```
pickTstat(method, parmtype, tsmethod, alternative)
```

`method` |
method type, one of "simple", "wald-pooled", "wald-unpooled", "score" (see details) |

`parmtype` |
type of parameter of interest, one of "difference", "ratio" or "oddsratio" (see details) |

`tsmethod` |
two-sided method, either "central" or "square" (see details) |

`alternative` |
alternative hypothesis, one of "two.sided", "less", or "greater", default is "two.sided" |

See 'details' section of `uncondExact2x2`

.

A function that has the following arguments:

`X1` |
vector, number of events in group 1 |

`N1` |
sample size in group 1 |

`X2` |
vector, number of events in group 2 |

`N2` |
sample size in group 2 |

`delta0` |
null parameter value |

and outputs a vector the same length as X1 and X2.

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.