This function fits a generalized estimating equation model to longitudinal data.

1 2 3 |

`formula` |
A formula expression in the form of |

`id` |
A vector for identifying subjects/clusters. |

`data` |
A data frame which stores the variables in |

`na.action` |
A function to remove missing values from the data. Only |

`family` |
A |

`corstr` |
A character string, which specifies the type of correlation structure.
Structures supported in |

`Mv` |
If either |

`beta_int` |
User specified initial values for regression parameters. The default value is |

`R` |
If |

`scale.fix` |
A logical variable; if true, the scale parameter is fixed at the value of |

`scale.value` |
If |

`maxiter` |
The number of iterations that is used in the estimation algorithm. The default value is |

`tol` |
The tolerance level that is used in the estimation algorithm. The default value is |

`silent` |
A logical variable; if false, the regression parameter estimates at each iteration are
printed. The default value is |

An object class of `MGEE`

representing the fit.

The structures `"non_stat_M_dep"`

and `"unstructured"`

are valid only when the data is balanced.

Liang, K.Y. and Zeger, S.L. (1986).
Longitudinal data analysis using generalized linear models.
*Biometrika*, **73**, 13–22.

Zeger, S.L. and Liang, K.Y. (1986)
. Longitudinal data analysis for discrete and continuous outcomes.
*Biometrics*, **42**, 121–130.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

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.