- Home
- CRAN
**HH**: Statistical Analysis and Data Display: Heiberger and Holland**lm.regsubsets**: Evaluate lm model with highest adjusted $R^2$.

# Evaluate lm model with highest adjusted $R^2$.

### Description

The `regsubsets`

function in the `leaps`

package finds the
model with the highest adjusted *R^2*. This function evaluates the full
`lm`

object for that model.

### Usage

1 | ```
lm.regsubsets(object, model.number, ...)
``` |

### Arguments

`object` |
An object of class |

`model.number` |
Index number generated by |

`...` |
Other arguments. |

### Value

`"lm"`

object for the selected model.

### Author(s)

Richard M. Heiberger <rmh@temple.edu>

### See Also

`lm`

, `regsubsets`

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.

- ae.dotplot: AE (Adverse Events) dotplot of incidence and relative risk
- ae.dotplot7: AE (Adverse Events) dotplot of incidence and relative risk,...
- ae.dotplot7a: AE (Adverse Events) dotplot of incidence and relative risk
- ancova: Compute and plot oneway analysis of covariance
- ancova-class: Class "ancova" Analysis of Covariance
- ancovaplot: Analysis of Covariance Plots
- anova.ancova: ANOVA table for a c("ancovaplot","trellis") object.
- anova.mean: ANOVA table from the group sample sizes, means, and standard...
- aov.sufficient: Analysis of variance from sufficient statistics for groups.
- arima.diag.hh: Repair design error in S-Plus arima.diag
- arma.loop: Loop through a series of ARIMA models and display coordinated...
- as.likert: Support functions for diverging stacked barcharts for Likert,...
- as.matrix.listOfMatrices: Convert a list of matrices to a single matrix
- as.multicomp: Support functions in R for MMC (mean-mean multiple...
- as.vector.trellis: Convert a two-dimensional trellis object into a...
- axis.i2wt: specialized axis function for interaction2wt.
- bivariateNormal: Plot the bivariate normal density using wireframe for...
- ci.plot: Plot confidence and prediction intervals for simple linear...
- col3x2: col3x2 color dataset
- col.hh: Initializing Trellis Displays
- combineLimits.trellisvector: Combine limits on a one-dimensional trellis object.
- cp: Rearranges and improves the legibility of the output from the...
- cplx: Generate a sequence spanning the xlim of a lattice window.
- datasets: Datasets for Statistical Analysis and Data Display, Heiberger...
- diag.maybe.null: Returns a value for the diagonal of NA and NULL arguments.
- diagplot5new: Transpose of ECDF for centered fitted values and residuals...
- diagQQ: QQ plot of regression residuals.
- Discrete4.color: Discrete with four levels color dataset.
- discreteUniform: Discrete Uniform Distribution
- do.formula.trellis.xysplom: Interprets model formulas for xysplom and extended bwplots
- emptyMainLeftAxisLeftStripBottomLegend: Remove main title, left axis tick labels, left strip, bottom...
- export.eps: Exports a graph to an EPS file.
- extra: Miscellaneous functions that I wish were in or consistent...
- f.chisq.intermediate: Intermediate f and chisq functions to simplify writing for...
- F.curve: plot a chisquare or a F-curve.
- glht.mcp.993: Retain averaging behavior that was previously available in...
- gof.calculation: Calculate Box-Ljung Goodness of Fit for ARIMA models in...
- grid.axis.hh: make x- and y-axis labels
- GSremove: Remove selected GraphSheetPages in the S-Plus Windows GUI...
- hh: Resolve filenames relative to the HH directory.
- HH-defunct: Defunct Functions in Package 'HH'
- HH.package: Support software for Statistical Analysis and Data Display by...
- hhpdf: R tools for writing HH2: hhpdf, hhdev.off, hhcapture, hhcode,...
- HH_regsubsets: Display tabular results for Best Subsets Regression.
- HHscriptnames: Find absolute pathname of a script file for the HH book in...
- hov: Homogeneity of Variance
- hovBF: Homogeneity of Variance: Brown-Forsyth method
- if.R: Conditional Execution for R or S-Plus
- interaction2wt: Plot all main effects and twoway interactions in a...
- interaction.positioned: interaction method for positioned factors.
- interval: Prediction and Confidence Intervals for glm Objects
- intxplot: Interaction plot, with an option to print standard error...
- ladder: Draw a "ladder of powers" plot, plotting each of several...
- latticeresids: Subroutine used by residual.plots.lattice
- legendGrob2wt: place separate keys to the left of each row of a trellis
- likert: Diverging stacked barcharts for Likert, semantic...
- likertColor: Selection of colors for Likert plots.
- likertMosaic: Diverging stacked barcharts for Likert, semantic...
- LikertPercentCountColumns: Display likert plots with percents in the first column of...
- lmatPairwise: lmatPairwise
- lmatRows: Find the row numbers in the lmat corresponding to the focus...
- lm.case: case statistics for regression analysis
- lmplot: Four types of residual plots for linear models.
- lm.regsubsets: Evaluate lm model with highest adjusted $R^2$.
- logit: Logistic and odds functions and their inverses.
- matrix.trellis: Convert a one-dimensional trellis object to a two-dimensional...
- mcalinfct: MCA multiple comparisons analysis (pairwise)
- mmc: MMC (Mean-mean Multiple Comparisons) plots.
- mmcAspect: Control aspect ratio in MMC plots to maintain isomeans grid...
- mmcisomeans: Functions used by mmcplot.
- mmc.mean: MMC (Mean-mean Multiple Comparisons) plots from the...
- mmcplot: MMC (Mean-mean Multiple Comparisons) plots in lattice.
- mmcPruneIsomeans: MMC plots in lattice-suppress isomeans grid lines for...
- multicomp.order: Update a multicomp object by ordering its contrasts.
- multicomp.reverse: Force all comparisons in a "multicomp" object to have the...
- NormalAndT: Specify plots to illustrate Normal and t Hypothesis Tests or...
- normal.and.t.and.power: Construct a power graph based on the NTplot.
- NormalAndTplot: Specify plots to illustrate Normal and t Hypothesis Tests or...
- normalApproxBinomial: Plots to illustrate Normal Approximation to the...
- norm.curve: plot a normal or a t-curve with both x and z axes.
- npar.arma: Count the number of parameters in an ARIMA model...
- objip: loop through all attached directories looking for pattern,...
- odds.ratio: Calculate or plot the odds ratio for a 2x2 table of counts.
- OneWayVarPlot: Displays a three-panel 'bwplot' of the data by group, of the...
- orthog.complete: Construct an orthogonal matrix which is an arbitrary...
- panel.acf: Panel functions for tsdiagplot.
- panel.axis.right: Right-justify right-axis tick labels.
- panel.bwplot.intermediate.hh: Panel functions for bwplot.
- panel.bwplot.superpose: Panel function for bwplot that displays an entire box in the...
- panel.bwplott: Extension to S-Plus trellis to allow transposed plots.
- panel.cartesian: trellis panel function, with labeled rows and columns and...
- panel.ci.plot: Default Panel Function for ci.plot
- panel.confintMMC: Confidence interval panel for MMC tiebreaker plots, or...
- panel.dotplot.tb: Dotplot with evenly spaced tiebreakers.
- panel.interaction2wt: Plot all main effects and twoway interactions in a...
- panel.isomeans: isomeans grid for MMC plots.
- panel.likert: Panel functions for likert that include a stackWidth argument
- panel.pairs.hh: Function based on S-Plus panel.pairs to add the...
- panel.xysplom: panel method for xysplom.
- partial.corr: partial correlations
- persp.plane: Helper functions for regr2.plot
- plot.hov: Homogeneity of Variance Plot
- plot.mmc.multicomp: MMC (Mean-mean Multiple Comparisons) plot.
- plot.multicomp: Multiple comparisons plot that gives independent user control...
- position: Find or assign the implied position for graphing the levels...
- positioned-class: Class "positioned", extends "ordered" to specify the position...
- print.latticeresids: Print a 'latticeresids' object.
- print.NormalAndTplot: Print method for Normal and t plots from NTplot.
- print.tsdiagplot: Print a "tsdiagplot" object.
- print.TwoTrellisColumns: Print two conformable trellis plots in adjacent columns with...
- pushpop.vp.hh: push and pop a grid viewport, turn clipping off, change...
- pyramidLikert: Print a Likert plot as a Population Triangle
- rbind.trellis: Extend matrix reshaping functions to trellis objects.
- regr1.plot: plot x and y, with optional straight line fit and display of...
- regr2.plot: 3D plot of z against x and y, with regression plane fit and...
- regrresidplot: Draw a plot of y vs x from a linear model object, with...
- resid.squares: plot squared residuals in inches to match the y-dimension
- residual.plots: Residual plots for a linear model.
- residual.plots.lattice: Construct four sets of regression plots: Y against X,...
- residVSfitted: Draw plots of resid ~ y.hat and sqrt(abs(resid)) ~ y.hat
- ResizeEtc: Display multiple independent trellis objects on the same...
- ResizeEtc.likertPlot: Display multiple independent trellis objects, representing...
- seqplot: Time series plot.
- seqplot.forecast: seqplot with confidence bands for the forecast region.
- strip.background0: Turn off the coloring in the trellis strip labels. Color 0...
- strip.xysplom: strip function that is able to place the correlation or...
- sufficient: Calculates the mean, standard deviation, and number of...
- summary.arma.loop: summary and print and subscript methods for tsdiagplot and...
- tsacfplots: Coordinated time series and ACF and PCF plots.
- tsdiagplot: Times series diagnostic plots for a structured set of ARIMA...
- useOuterStripsT2L1: Three-factor generalization of latticeExtra::useOuterStrips
- vif: Calculate the Variance Inflation Factor
- X.residuals: Residuals from the regression of each column of a data.frame...
- xysplom: scatterplot matrix with potentially different sets of...