find_data: Internal Method for Extracting Data for IMR

Description Usage Arguments Details Value

View source: R/IMR-find_data.R

Description

An internal generic method for extracting fitted response and standerdize residuals.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
find_data(m)

## Default S3 method:
find_data(m)

## S3 method for class 'lm'
find_data(m)

## S3 method for class 'glm'
find_data(m)

## S3 method for class 'coxph'
find_data(m)

## S3 method for class 'aalen'
find_data(m)

## S3 method for class 'timecox'
find_data(m)

## S3 method for class 'cox.aalen'
find_data(m)

## S3 method for class 'aareg'
find_data(m)

Arguments

m

a model object

Details

This function finds the relevant model data and returns it in a suitable manner to the IMR function.

Value

a list with the following three entries

X

the fitted values of the model. In hazard models this is the time points corresponding to observed events.

Y

a list with the raw and standerdized residuals. In hazard models this is the standerdized residuals found when fitting a line through the estimated cumulative hazard.

name

a ("short") string describing the model. This value will be used as the model name in the final output.


Laksafoss/ICPSurv documentation built on Feb. 26, 2020, 11:32 a.m.