Description Usage Arguments Details Value Examples

Formal description of numeric variable

1 2 |

`name` |
character, the name of the variable |

`desc` |
character, a description of what is measured |

`unit` |
character, the measurement unit |

`support` |
the support of the measurements, see below |

`add` |
add these values to the support before generating a
grid via |

`bounds` |
an interval defining the bounds of a real sample space |

`...` |
ignored |

A numeric variable can be discrete (support is then the set of all possible values, either integer or double; integers of length 2 are interpreted as all integers inbetween) or continuous (support is a double of length 2 giving the support of the data).

If a continuous variable is bounded, `bounds`

defines the
corresponding interval.

An object of class `numeric\_var`

inheriting from `var`

with
corresponding methods.

1 2 3 4 5 6 | ```
numeric_var("age", "age of patient", "years", support = 25:75)
numeric_var("time", "survival time", "days", support = 0:365)
numeric_var("time", "survival time", "days", support = c(0.0, 365),
bounds = c(0, Inf))
``` |

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.