sorting_func: Model Sort

Description Usage Arguments Value Examples

View source: R/sorting_func.R

Description

Sorts the variables in the model and summarizes the variables included and whether they enter linearly or not in a string. For internal use in memoization.

Usage

1
sorting_func(individual_row, Kvar, Kint)

Arguments

individual_row

Vector containing the model

Kvar

Maximum number of variables allowed in the final model

Kint

Maximum number of interactions allowed in the final model

Value

A string summarizing the model.

Examples

1
2
3
4
5
6
7
8
individual_row <- c("x1","0","x4","x3","0","x8","1","0","0","0","0","1")
Kvar <- 6
Kint <- 0

## Not run: 
sorting_func(individual_row,Kvar,Kint)

## End(Not run)

markcus1/gagam documentation built on April 16, 2020, 11:50 a.m.