Takes simulation parameter arguments and returns simulated data for two different probability distributions. One is logistic (0/1) outcome and the second being poisson (count) outcomes.

1 | ```
data_glm_single(Xmat, beta, n, outcome_type)
``` |

`Xmat` |
A matrix of covariates. |

`beta` |
A vector of regression parameters. |

`n` |
Number of clusters. |

`outcome_type` |
A vector specifying the type of outcome, must be either logistic or poisson. Logitstic outcome will be 0/1 and poisson outcome will be counts. |

simglm documentation built on Jan. 24, 2019, 1:04 a.m.

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.