Displays the final model fit statistics from a StepReg object. This function provides a concise summary of the selected model's performance metrics.

# S3 method for class 'StepReg'
print(x, ...)

Arguments

x

A StepReg object containing the results of stepwise regression analysis.

...

Additional arguments passed to the print method (currently not used).

Value

Invisibly returns the printed object. The function displays:

  • Final model fit statistics for each strategy and metric combination

Details

The print method provides a focused view of the final model's performance, showing the selected variables and their corresponding fit statistics. This is useful for quickly assessing the model's quality without the detailed step-by-step selection process (which can be viewed using stepwise).

See also

stepwise for creating StepReg objects

plot.StepReg for visualization of results

Examples

if (FALSE) { # \dontrun{
# Load example data
data(mtcars)

# Run stepwise regression
formula <- mpg ~ .
result <- stepwise(
  formula = formula,
  data = mtcars,
  type = "linear",
  strategy = "forward",
  metric = "AIC"
)

# Print final model statistics
result
} # }