Skip to contents

This function returns a string representation of the object.

Value

A string.

Examples


VI_MODEL$..str..()
#> [1] "<VI_MODEL class>"

# Instantiate
x <- rand_uniform()
e <- rand_normal()
test <- vi_model(prm = list(x = x, e = e),
                 prm_type = list(x = "r", e = "r"),
                 formula = y ~ 1 + x + x^2 + e,
                 null_formula = y ~ x,
                 alt_formula = y ~ x + I(x^2))

test$..str..()
#> [1] "<VI_MODEL object>\n y = 1 + x + x^2 + e\n  - x: <RAND_UNIFORM object>\n    [a: 0, b: 1]\n  - e: <RAND_NORMAL object>\n    [mu: 0, sigma: 1]"