predictive_cdf | R Documentation |

`predictive_cdf()`

evaluates the predictive CDF of the model specified
by a `DataDistribution`

`dist`

and
`Prior`

at the given stage-one outcome.

```
predictive_cdf(dist, prior, x1, n1, ...)
## S4 method for signature 'DataDistribution,PointMassPrior,numeric'
predictive_cdf(dist, prior, x1, n1, ...)
## S4 method for signature 'DataDistribution,ContinuousPrior,numeric'
predictive_cdf(
dist,
prior,
x1,
n1,
k = 10 * (prior@support[2] - prior@support[1]) + 1,
...
)
```

`dist` |
a univariate |

`prior` |
a |

`x1` |
stage-one test statistic |

`n1` |
stage-one sample size |

`...` |
further optional arguments |

`k` |
number of pivots for crude integral approximation |

`numeric`

, value of the predictive CDF

```
predictive_cdf(Normal(), PointMassPrior(.0, 1), 0, 20) # .5
tmp <- ContinuousPrior(function(x) dunif(x, .2, .4), c(.2, .4))
predictive_cdf(Normal(), tmp, 2, 20)
```

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.