plot.simBA | R Documentation |

`plot()`

plots the output of a call to `simBA()`

. The plot can contain either the estimated hazard ratios or standardized mean differences across simulations, each in a set of box plots.

```
## S3 method for class 'simBA'
plot(x, type = "balance", ...)
```

`x` |
a |

`type` |
the type of plot to produce; allowable options include |

`...` |
further arguments passed to |

The balance plot plots absolute standardized mean differences. Vertical lines are placed at 0 (solid) and .1 (dashed). The hazard ratio (HR) plot plots hazard ratios on a log scale for the x-axis. Vertical lines are placed at 1 (solid) and the true marginal HR (dashed). The bias plot plots the relative error in the HR with a vertical line at 0% (indicating no error).

A `ggplot`

object, which can be modified using `ggplot2`

syntax.

`simBA()`

for performing the simulation.

```
# See help("simBA") for examples.
```

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.