This function trains a ctree using data from a passed data.frame and returns the resulting spread score.
1 | ctree.subscore(i, df, nSample = NULL, ctl = NULL, responseVar, ignoreCols)
|
df |
data.frame with response variable to be explained and all explanatory variables to be used in ctree classificaiton |
nSample |
number of samples if hte spread score should be run on a subset of the data |
ctl |
ctree control to specify ctree model parameters |
responseVar |
the name of the variable that the ctree is trying to explain |
ignoreCols |
an optional list of columns in df, but that should be excluded from the ctree modeling |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.