Description Usage Arguments Value See Also Examples

`extract.emdr2`

extracts particular elements from an `emdr2`

object
such as performance criteria or residuals.
`coef.emdr2`

specifically extract regression coefficients.

1 2 3 4 | ```
extract.emdr2(object, what, select = NULL)
## S3 method for class 'emdr2'
coef(object, method = "coef", ...)
``` |

`object` |
An |

`what` |
A character giving the name of the element to extract. |

`select` |
A character of numeric vector giving a subset of MIMFs for which to extract the element. |

`method` |
The coefficient method linked to the regression function used. The default should cover most cases. |

`...` |
Additional arguments to be passed to the |

`extract.emdr2`

: a vector, matrix or list of the extracted
elements. The class of the output depend on the type of element.

`coef.emdr2`

: a nimfs x nvariable matrix of coefficients.

`emdr2`

to produce an `emdr2`

object.

1 2 3 4 5 6 7 8 9 10 11 | ```
library(dlnm)
dat <- chicagoNMMAPS[,c("death", "temp", "rhum")]
mimfs <- memd(dat)
cmimfs <- combine.mimf(mimfs, list(12:13, 14:17, 18:19),
new.names = c("C12", "C13", "r"))
lm.R2 <- emdr2(death ~ temp + rhum, mimf = cmimfs)
betas.R2 <- coef(lm.R2)
aic.R2 <- extract.emdr2(lm.R2, what = "aic")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.