sample.fn: Sample a model with a specific function

Description Usage Arguments Value Examples

View source: R/SDPSyn.R

Description

Sample a model with a specific function

Usage

1
sample.fn(method, xp, fit.model, smoothing, ...)

Arguments

method

a string. currently only method="ctree".

...

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

x

a predictors, a dataframe.

y

variable to predict, a vector

Value

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

Examples

1
2
3
4
sample.fn(method="ctree",
          xp=iris[,-5],
          fit.model=fitmodel.fn(method="ctree",x=iris[,-5],y=iris$Species,nbuckets=30),
          smoothing=FALSE)

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