qif

Estimation and inference in longitudinal data analysis using marginal models/ Peter X.K. Song

https://github.com/umich-biostatistics/qif

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    1 of 1 committers (100.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Estimation and inference in longitudinal data analysis using marginal models/ Peter X.K. Song

Basic Info
  • Host: GitHub
  • Owner: umich-biostatistics
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 51.8 KB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 7 years ago · Last pushed almost 7 years ago
Metadata Files
Readme

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```
# qif




##  Quadratic Inference Function fit of balanced longitudinal data

Developed to perform the estimation and inference for regression
         coefficient parameters in longitudinal marginal models using the method of
         quadratic inference functions. Like generalized estimating equations, this
         method is also a quasi-likelihood inference method. It has been showed that
         the method gives consistent estimators of the regression coefficients even
         if the correlation structure is misspecified, and it is more efficient than
         GEE when the correlation structure is misspecified. Based on Qu, A.,
         Lindsay, B.G. and Li, B. (2000) DOI: 10.1093/biomet/87.4.823.

## Merits of QIF

Like generalized estimating equations (GEE), QIF is also a quasilikelihood inference method. It has been showed that

1. QIF gives consistent estimators of the regression coefficients even if the correlation structure
is misspecified. GEE has the same property.

2. QIF estimators are of the same efficiency as GEE estimators when the correlation structure
is correctly specified, but more efficient when the correlation structure is misspecified.

3. QIF gives a goodness-of-fit test for the validity of the first moment assumption pertaining to
the unbiasedness of inference function. This assumption is crucial to ensure the consistency
in estimation. GEE cannot provide this test.

4. QIF is robust against a small portion of outliers/contaminated data; refer to Qu, A. and Song,
P. (2004), “Assessing robustness of generalised estimating equations and quadratic inference
functions”, Biometrika, 91, 447-459.

5. QIF is analogous to -2*log-likelihood, so it enables naturally to define some model selection
criteria, such as Akaike Information Criterion (AIC) and Bayes Information Criterion (BIC).

## Installation

You can install the released version of qif from [CRAN](https://CRAN.R-project.org) with:

``` r
install.packages("qif")
```

Or install the development version from [Github](https://github.com/umich-biostatistics/qif) with:

``` r
install.packages("devtools") # you need devtools to install packages from Github
devtools::install_github("umich-biostatistics/qif")
```

## Examples

``` r
## Marginal log-linear model for the epileptic seizures count data
## (Diggle et al., 2002, Analysis of Longitudinal Data, 2nd Ed., Oxford Press).

# Read in the epilepsy data set:
data(epil)

# Fit the QIF model:
fit <- qif(y ~ base + trt + lage + V4, id=subject, data=epil,
                                       family=poisson, corstr="AR-1")
 
# Alternately, use ginv() from package MASS
fit <- qif(y ~ base + trt + lage + V4, id=subject, data=epil,
                      family=poisson, corstr="AR-1", invfun = "ginv")


# Print summary of QIF fit:
summary(fit)


## Second example: MS study
data(exacerb)

qif_BIN_IND<-qif(exacerbation ~ treatment + time + duration + time2, id=id,
                        data=exacerb, family=binomial, corstr="independence")
                        
qif_BIN_AR1<-qif(exacerbation ~ treatment + time + duration + time2, id=id,
                        data=exacerb, family=binomial, corstr="AR-1")
                        
qif_BIN_CS<-qif(exacerbation ~ treatment + time + duration + time2, id=id,
                        data=exacerb, family=binomial, corstr="exchangeable")
                        
qif_BIN_UN<-qif(exacerbation ~ treatment + time + duration + time2, id=id,
                        data=exacerb, family=binomial, corstr="unstructured")

summary(qif_BIN_CS)

qif_BIN_CS$statistics

qif_BIN_CS$covariance
```

Owner

  • Name: Department of Biostatistics at the University of Michigan
  • Login: umich-biostatistics
  • Kind: organization
  • Location: Ann Arbor, Michigan

GitHub Events

Total
Last Year

Committers

Last synced: over 3 years ago

All Time
  • Total Commits: 16
  • Total Committers: 1
  • Avg Commits per committer: 16.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Kleinsasser m****a@U****U 16
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 186 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: qif

Quadratic Inference Function

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 186 Last month
Rankings
Forks count: 28.8%
Dependent packages count: 29.8%
Stargazers count: 35.2%
Dependent repos count: 35.5%
Average: 43.3%
Downloads: 87.4%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • MASS * imports