an object of class "formula" with a response but no interaction terms.
The response variable should be a binomial factor that has values of 1 for a positive response
or -1 for a negative or lack of response.
data
the dataframe containing the independent variables and the response
iterations
The number of training rounds for boosting.
verbose
should the current training round be printed to the console?
Value
An S3 object of class boosted. This includes
Examples
k <- kyphosis
k$Kyphosis <- factor(ifelse(k$Kyphosis == "present", 1L, -1L))
fit <- fitBoosted(Kyphosis ~ Age + Number + Start, data = k, iterations = 10)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(DidacticBoost)
Loading required package: rpart
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/DidacticBoost/fitBoosted.Rd_%03d_medium.png", width=480, height=480)
> ### Name: fitBoosted
> ### Title: Simple Gradient Boosting
> ### Aliases: fitBoosted
>
> ### ** Examples
>
> k <- kyphosis
> k$Kyphosis <- factor(ifelse(k$Kyphosis == "present", 1L, -1L))
> fit <- fitBoosted(Kyphosis ~ Age + Number + Start, data = k, iterations = 10)
Solving iteration 1
Solving iteration 2
Solving iteration 3
Solving iteration 4
Solving iteration 5
Solving iteration 6
Solving iteration 7
Solving iteration 8
Solving iteration 9
Solving iteration 10
>
>
>
>
>
>
> dev.off()
null device
1
>