example_model: Example model

Description Format See Also Examples

Description

A model for use in rsstap examples.

Format

Calling example("example_model") will run the model in the Examples section, below, and the resulting sstapreg object will then be available in the global environment. The chains and iter arguments are specified to make this example be small in size. In practice, it is reccomended that they be left unspecified in order to use the default values (4 and 2000 respectively) or increased if there are convergence problems. The cores argument is optional and on a multicore system, the user may well want to set that equal to the number of chains being executed.

See Also

example_benvo for a description of the data.

Examples

1
2
3
4
5
6
example_model <- 
  sstap_lm(BMI ~ sex + sap(FFR),
             benvo = rbenvo::FFbenvo,
             # this next line is only to keep the example small in size!
             chains = 1, cores = 1, seed = 12345, iter = 500, refresh = 0)
example_model

apeterson91/rsstap documentation built on April 7, 2021, 4:36 p.m.