model.string {FBMS}R Documentation

Function to generate a function string for a model consisting of features

Description

Function to generate a function string for a model consisting of features

Usage

model.string(model, features, link = "I", round = 2)

Arguments

model

A logical vector indicating which features to include

features

The population of features

link

The link function to use, as a string

round

Rounding error for the features in the printed format

Value

A character representation of a model

Examples

result <- gmjmcmc(matrix(rnorm(600), 100), P = 2, gaussian.loglik, NULL, c("p0", "exp_dbl"))
summary(result)
plot(result)
model.string(c(TRUE, FALSE, TRUE, FALSE, TRUE), result$populations[[1]])
model.string(result$models[[1]][1][[1]]$model, result$populations[[1]])


[Package FBMS version 1.0 Index]