Learn R Programming

seqest (version 1.0.1)

genBin: Generate the correlated binary response data for discrete case

Description

genBin generate the data used for discrete case

Usage

genBin(corstr, mu = NULL, size = NULL)

Arguments

corstr

A character string specifying the correlation structure for the clusters. Allowed structures are: "independence", "exchangeable" and "ar1".

mu

A numeric parameter denotes the value of the link function

size

A numeric number indicating the size of the matrix.

Value

a function to get the correlated binary response data

Details

genBin returns the correlated binary response according to the value of the corstr argument.