Giter VIP home page Giter VIP logo

frailtyem's Introduction

CRAN_Status_Badge

CRAN_Downloads_Badge

Build Status

This is an R package for fitting semiparametric shared frailty models with the EM algorithm. You can check the "issues" section to see about known issues. For the gamma frailty model, the results are identical with those from the survival pacakage, although frailtyEM provides a more readable output, including confidence intervals for the frailty variance. Other supported distributions include the PVF, compound Poisson, inverse Gaussian, positive stable. Univariate and multivariate data with left truncation are supported, including recurrent events data in Andersen-Gill formulation.

The stable version may be installed from CRAN:

install.packages("frailtyEM")

and the development version from GitHub:

devtools::install_github("tbalan/frailtyEM")

The bulk of the documentation of the package can be found in the vignette. If the package is installed from GitHub, then the vignette is installed if the pacakge is installed like this:

devtools::install_github("tbalan/frailtyEM", build_vignettes = TRUE)

Functions

The main fitting function is emfrail(), which in general returns an emfrail() object. Several plots can be produced from this objects, via the plot.emfrail() and autoplot.emfrail() methods (the latter using ggplot2).

Another useful tool is the Commenges-Andersen score test for heterogeneity. This test does not require estimating the shared frailty model. The ca_test() function may be used in conjunction with a coxph object to calculate this.

Future plans

A few things that will follow in the future:

  • plots and calculation of the cross-ratio
  • more frailty distributions
  • piecewise constant and parametric hazards
  • a big update to the vignette

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.