Learn R Programming

⚠️There's a newer version (1.3.4) of this package.Take me there.

mets (version 1.2.3.1)

Analysis of Multivariate Event Times

Description

Implementation of various statistical models for multivariate event history data . Including multivariate cumulative incidence models , and bivariate random effects probit models (Liability models) . Also contains two-stage binomial modelling that can do pairwise odds-ratio dependence modelling based marginal logistic regression models. This is an alternative to the alternating logistic regression approach (ALR).

Copy Link

Version

Install

install.packages('mets')

Monthly Downloads

9,492

Version

1.2.3.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

April 30th, 2018

Functions in mets (1.2.3.1)

base4cumhaz

rate of Mechanical (hole/defect) complication for catheter of HPN patients of Copenhagen
base44cumhaz

rate of Occlusion/Thrombosis complication for catheter of HPN patients of Copenhagen
bicomprisk

Estimation of concordance in bivariate competing risks data
dby

Calculate summary statistics grouped by
daggregate

aggregating for for data frames
drcumhaz

Rate for leaving HPN program for patients of Copenhagen
binomial.twostage

Fits Clayton-Oakes or bivariate Plackett (OR) models for binary data using marginals that are on logistic form. If clusters contain more than two times, the algoritm uses a compososite likelihood based on all pairwise bivariate models.
dermalridges

Dermal ridges data (families)
dreg

Regression for data frames with dutility call
dermalridgesMZ

Dermal ridges data (monozygotic twins)
eventpois

Extract survival estimates from lifetable analysis
familyclusterWithProbands.index

Finds all pairs within a cluster (famly) with the proband (case/control)
dtransform

Transform that allows condition
dtable

tables for data frames
fast.approx

Fast approximation
lifetable.matrix

Life table
lifecourse

Life-course plot
print.casewise

prints Concordance test
prob.exceed.recurrent

Estimation of probability of more that k events for recurrent events process
familycluster.index

Finds all pairs within a cluster (family)
ipw

Inverse Probability of Censoring Weights
EVaddGam

Relative risk for additive gamma model
aalenfrailty

Aalen frailty model
Grandom.cif

Additive Random effects model for competing risks data for polygenetic modelling
ipw2

Inverse Probability of Censoring Weights
back2timereg

Convert to timereg object
concordance

Concordance Computes concordance and casewise concordance
count.history

Counts the number of previous events of two types for recurrent events processes
ClaytonOakes

Clayton-Oakes model with piece-wise constant hazards
summary.cor

Summary for dependence models for competing risks
random.cif

Random effects model for competing risks data
prt

Prostate data set
cor.cif

Cross-odds-ratio, OR or RR risk regression for competing risks
test.conc

Concordance test Compares two concordance estimates
tetrachoric

Estimate parameters from odds-ratio
survival.twostage

Twostage survival model for multivariate survival data
casewise.test

Estimates the casewise concordance based on Concordance and marginal estimate using timereg and performs test for independence
twinlm

Classic twin model for quantitative traits
Dbvn

Derivatives of the bivariate normal cumulative distribution function
biprobit

Bivariate Probit model
cluster.index

Finds subjects related to same cluster
covarianceRecurrent

Estimation of covariance for bivariate recurrent events with terminal event
twinsim

Simulate twin data
dlag

Lag operator
dcor

summary, tables, and correlations for data frames
dprint

list, head, print, tail
blocksample

Block sampling
gofM.phreg

GOF for Cox covariates in PH regression
divide.conquer

Split a data set and run function
dcut

Cutting, sorting, rm (removing), rename for data frames
drelevel

relev levels for data frames
dsort

Sort data frame
npc

For internal use
gof.phreg

GOF for Cox PH regression
mets.options

Set global options for mets
migr

Migraine data
phreg

Fast Cox PH regression
gofG.phreg

Stratified baseline graphical GOF test for Cox covariates in PH regression
divide.conquer.timereg

Split a data set and run function from timereg and aggregate
plack.cif

plack Computes concordance for or.cif based model, that is Plackett random effects model
simRecurrent

Simulation of recurrent events data based on cumulative hazards
simRecurrentII

Simulation of recurrent events data based on cumulative hazards
multcif

Multivariate Cumulative Incidence Function example data set
easy.binomial.twostage

Fits two-stage binomial for describing depdendence in binomial data using marginals that are on logistic form using the binomial.twostage funcion, but call is different and easier and the data manipulation is build into the function. Useful in particular for family design data.
easy.survival.twostage

Wrapper for easy fitting of Clayton-Oakes or bivariate Plackett models for bivariate survival data
np

np data set
pmvn

Multivariate normal distribution function
predict.phreg

Predictions from proportional hazards model
fast.pattern

Fast pattern
simClaytonOakes

Simulate from the Clayton-Oakes frailty model
fast.reshape

Fast reshape
mena

Menarche data set
simClaytonOakesWei

Simulate from the Clayton-Oakes frailty model
mets-package

Analysis of Multivariate Events
twinstut

Stutter data set
recurrentMarginal

Fast recurrent marginal mean when death is possible
simAalenFrailty

Simulate from the Aalen Frailty model
twin.clustertrunc

Estimation of twostage model with cluster truncation in bivariate situation
twinbmi

BMI data set
base1cumhaz

rate of CRBSI for HPN patients of Copenhagen
basehazplot.phreg

Plotting the baslines of stratified Cox
bptwin

Liability model for twin data
casewise

Estimates the casewise concordance based on Concordance and marginal estimate using prodlim but no testing