Skip to contents

Given a confidence interval, simulate individual patient data

Usage

ci_ipd(ci, n, df = Inf)

Arguments

ci

Confidence interval

n

Sample size

df

Degrees of freedom (default: infinite)

Value

A numeric vector of individual patient data

Examples

ci_ipd(c(-0.31, -0.02), 10)
#> $mean
#> [1] -0.165
#> 
#> $sd
#> [1] 0.2339483
#> 
#> $ipd
#>  [1] -0.08167938 -0.36175676 -0.15047867 -0.16201485  0.11956493  0.08980915
#>  [7] -0.41692454 -0.11647399 -0.07042247 -0.44174799
#>