sortDat: Sort data by order of increasing survival time

Description Usage Arguments Value

View source: R/sortDat.R

Description

This function is used internally in jointmeta1. It takes longitudinal and survival datasets, and orders them by increasing survival time.

Usage

1
sortDat(longdat, survdat, longdat2, survdat2)

Arguments

longdat

longitudinal dataset with factor variables and interaction terms expanded out

survdat

survival dataset with factor variables and interaction terms expanded out

longdat2

longitudinal dataset with original variables

survdat2

survival dataset with original variables

Value

a list containing four ordered versions of the inputted datasets. In the output long.s is the the ordered version of longdat, surv.s is the ordered version of survdat, long.s2 is the ordered version of longdat2, and surv.s2 is the ordered version of survdat2.


mesudell/joineRmeta documentation built on Jan. 24, 2020, 6:06 p.m.