Create an empty compositional model - i.e. an empty sequence of probability distribution. Dimension of an empty compositional model is 0. Based on Object(), R.oo package.

Model(name, info = "")

Arguments

name

Name of the new Model(only for Information about Model). One word is good.

info

Information about the new Model(only for Information about Model)

Value

return empty Model with name and info

Details

Based on Object().

Model has 6 private variables:

Slots

name:

string - name of Model(essential input parametr)

info:

string - information about Model (input parametr, default:"")

distribution:

list - list of Distributions in Model, default: list()

variables:

list - list of variables of each Distribution in .distribution

length:

integer - number of distributions in list .distribution

dim:

integer -number of unique variables in list .variables

See also

Object, extend

Examples

m <- Model("compositional model") data(Pi) data(K)
#> Warning: data set 'K' not found
compose(m, Pi) compose(m, K)
#> Error in copy(distribution): object 'K' not found