TABLE OF CONTENTS
simSurvival/rinvgamma [ Functions ]
NAME
rinvgamma --- generate inverse-gamma random variates
FUNCTION
Generate inverse-gamma random numbers
SYNOPSIS
1113 rinvgamma <- function(n, shape, scale = 1)
INPUTS
n number of variates to generate shape shape parameter scale scale parameter
OUTPUTS
n inverse-gamma random numbers
SOURCE
1116 { 1117 1118 return(1 / rgamma(n, shape, rate = scale)) 1119 }