familySimFun: Family simulation functions

Description Usage Arguments Value Examples

Description

Family simulation functions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
familySimFun(object, ...)

## S3 method for class 'family'
familySimFun(object, ...)

## S3 method for class 'character'
familySimFun(object, ...)

## S3 method for class 'function'
familySimFun(object, ...)

## S3 method for class 'gaussianFamily'
familySimFun(object, ...)

## S3 method for class 'binomialFamily'
familySimFun(object, ...)

## S3 method for class 'poissonFamily'
familySimFun(object, ...)

## S3 method for class 'GammaFamily'
familySimFun(object, ...)

Arguments

object

typically a family object

...

additional objects to pass on (not yet used).

Value

a simulation function taking three arguments: wts, nsim, and ftd.

Examples

1
2
3
4
5
set.seed(1)
simFun <- familySimFun(binomial)
simFun(wts = rep(1, 10),
       nsim = 10,
       ftd = binomial()$linkinv(rnorm(10)))

stevencarlislewalker/lme4ord documentation built on May 30, 2019, 4:43 p.m.