R/get.stepwise.model.results.r

Defines functions get.stepwise.model.results

get.stepwise.model.results = function( model.full ) {

    model.stepwise = stepAIC( model.full, direction="both" )
    
    print ("The stepwise selected model")
    model.stepwise$anova
    
    summary( model.stepwise )
    
    Anova ( model.stepwise )
    
    print ("The stepwise selected model coefficients")
    print(as.data.frame(coef( model.stepwise )))
    
    return( model.stepwise )
}
jae0/bio.snowcrab documentation built on Nov. 6, 2024, 10:10 p.m.