sort1: Helper function for 'sorter', doing within group sorting

View source: R/sorter.R

sort1R Documentation

Helper function for sorter, doing within group sorting

Description

This function is a helper for sorter, designed to handle sorting within individual groups as sorter loops through groups (even if there is only one group) using sort1.

Usage

sort1(
  id1,
  y1,
  times1,
  events1,
  event.times1,
  group1,
  ascending = TRUE,
  whichColumns = NULL,
  initFirst = FALSE
)

Arguments

id1

The identification variable for one group, analogous to id in longCat.

y1

The longitudinal data for one group, analogous to y in longCat.

times1

The time data for one group, analogous to times in longCat.

events1

The events data for one group, analogous to events in longCat.

event.times1

The event times for one group, analogous to event.times in longCat.

group1

The group identification variable for one group, analogous to group in sorter.

ascending

Logical, indicating if sorting should be in ascending order. This parameter is consistent with the ascending option in sorter.

whichColumns

Specifies which columns of y1 should be considered in the sorting process, consistent with the whichColumns option in sorter.

initFirst

Logical, indicating whether to initialize sorting with the first column, consistent with the initFirst option in sorter.

Author(s)

Stephen J. Tueller


stueller/longCatEDA documentation built on March 9, 2024, 4:08 a.m.