Description Usage Arguments Value Author(s) See Also Examples
View source: R/mogavsToLinear.R
Takes in a mogavs model and a number of variables, and transforms that into linear model as in lm.
| 1 | mogavsToLinear(bestModel, y_ind, data, ...)
 | 
| bestModel | A binary vector, representing the variables in one model for a given number of variables. | 
| y_ind | Column number for the y values in data. | 
| data | The used data set. | 
| ... | Additional arguments. | 
| lm | A linear model of class  | 
Tommi Pajala <tommi.pajala@aalto.fi>
| 1 2 3 4 5 6 7 8 | data(sampleData)
mod<-mogavs(y~.,sampleData,maxGenerations=20)
#get the best model with 15 variables
bm<-getBestModel(mod,15,method=NULL)
#transform best model into a linear model
mogavsToLinear(bm,1,sampleData)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.