Learn R Programming

forsearch (version 6.4.0)

cStep2: Update Observation Set in Step 2

Description

Derives the set of observation numbers for step 2 for forsearch in Cox proportional hazard models

Usage

cStep2(fe, finalm, rimbs, dfa2, onlyfactor=FALSE, ycol, cphties,mstart, rnk, b.d)

Value

Vector of expanding number sets corresponding to observation numbers

Arguments

fe

Right hand side of formula

finalm

List of rows in model at each stage

rimbs

List, each element is a complete matrix of obs numbers and corresponding subset codes

dfa2

Complete data frame with factor subset indicator codes

onlyfactor

Logical. TRUE if there are no continuous independent variables

ycol

Response column number

cphties

Character designation of method of handling ties

mstart

Number of observations in first stage of Step 2

rnk

Rank of linear analysis with factor variables removed

b.d

Indicator of starting point for diagnostic listings

Author

William R. Fairweather

Details

Support function; usually not called independently