construct.blocks | R Documentation |

`formulas`

and `predictorMatrix`

This helper function attempts to find blocks of variables in the
specification of the `formulas`

and/or `predictorMatrix`

objects. Blocks specified by `formulas`

may consist of
multiple variables. Blocks specified by `predictorMatrix`

are
assumed to consist of single variables. Any duplicates in names are
removed, and the formula specification is preferred.
`predictorMatrix`

and `formulas`

. When both arguments
specify models for the same block, the model for the
`predictMatrix`

is removed, and priority is given to the
specification given in `formulas`

.

construct.blocks(formulas = NULL, predictorMatrix = NULL)

`formulas` |
A named list of formula's, or expressions that
can be converted into formula's by |

`predictorMatrix` |
A numeric matrix of |

A `blocks`

object.

`make.blocks`

, `name.blocks`

form <- name.formulas(list(bmi + hyp ~ chl + age, chl ~ bmi)) pred <- make.predictorMatrix(nhanes[, c("age", "chl")]) construct.blocks(formulas = form, pred = pred)

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.