fitmodel.fn: Fit a model with a specific function

Description Usage Arguments Value Examples

View source: R/SDPSyn.R

Description

Fit a model with a specific function

Usage

1
fitmodel.fn(method, x, y, treeplotsavepath = NULL, ...)

Arguments

method

a string. currently only method="ctree" or "rf" (random forest).

x

a predictors, a dataframe.

y

variable to predict, a vector

treeplotsavepath

a

...

synthetic parameters to pass to the right fit model function. the fit model function name is the concatenation of "fit.model" and method

Value

a sublist of synparameters, which names are possible arguments of synthpop::syn.ctree if method="ctree".

Examples

1
fitmodel.fn(method="ctree",x=iris[,-5],y=iris$Species,nbuckets=30,tutu="not a good argument")

DanielBonnery/BigSyn documentation built on June 28, 2020, 7:18 p.m.