View source: R/summaryWO_data_frame.R

summaryWO.data.frame | R Documentation |

Win odds summary for a data frame

```
## S3 method for class 'data.frame'
summaryWO(x, AVAL, TRTP, ref, GROUP = NULL, ...)
```

`x` |
a data frame containing subject-level data. |

`AVAL` |
variable in the data with ordinal analysis values. |

`TRTP` |
the treatment variable in the data. |

`ref` |
the reference treatment group. |

`GROUP` |
an optional variable for grouping. |

`...` |
additional parameters. |

a list containing the summary of wins, losses, and ties. It contains the following named objects:

summary a data frame containing number of wins, losses, and ties by treatment group and the overall number of comparisons.

summary_by_GROUP (if

`GROUP`

variable is specified) a summary data frame by`GROUP`

.WO calculated WO (win odds) and WP (win probability) and their standard errors.

`calcWO()`

, `summaryWO()`

, `summaryWO.data.frame()`

methods.

```
summaryWO(x = HCE3, AVAL = "AVAL", TRTP = "TRTP", ref = "P", GROUP = "GROUP")
```

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.