# residuals.fahrmeier_94

0th

Percentile

##### Residuals for ddhazard

Residuals function for the result of a ddhazard fit

##### Usage
# S3 method for fahrmeier_94
residuals(object, type = c("std_space_error",
"space_error", "pearson", "raw"), data = NULL, ...)
##### Arguments
object

Result of ddhazard call

type

Type of residuals. Four possible values: "std_space_error", "space_error", "pearson" and "raw". See the sections below for details

data

Data frame with data for Pearson or raw residuals

...

Not used

##### Pearson and raw residuals

Is the result of a call with a type argument of either "pearson" or "raw" for Pearson residuals or raw residuals. Returns a list with class "fahrmeier_94_res" with the following elements

residuals

List of residuals for each bin. Each element of the list contains a 2D array where the rows corresponds to the passed data and columns are the residuals (residuals), estimated probability of death (p_est), outcome (Y) and row number in the initial dataset (row_num). The data rows will only have a residuals in a given risk list if they are at risk in that risk set

type

The type of residual

##### State space errors

Is the result of a call with a type argument of either "std_space_error" or "space_error". The former is for standardized residuals while the latter is non-standardized. Returns a list with class "fahrmeier_94_SpaceErrors" with the following elements

residuals

2D array with either standardized or non-standardized state space errors. The row are bins and the columns are the parameters in the regression

standardize

TRUE if standardized state space errors

Covariances

3D array with the smoothed co-variance matrix for each set of the state space errors

##### Aliases
• residuals.fahrmeier_94
Documentation reproduced from package dynamichazard, version 0.3.0, License: GPL-2

### Community examples

Looks like there are no examples yet.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.16008681058883667, "perplexity": 5241.280750377389}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-24/segments/1590347411862.59/warc/CC-MAIN-20200531053947-20200531083947-00550.warc.gz"}