Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

centralValues

Central Tendency estimates for variables


Description

This is needed for the creation of summaries and predicted values of regression models. It takes a data frame and returns a new data frame with one row in which the mean or mode of the columns is reported.

Usage

centralValues(x)

Arguments

x

a data frame

Value

a data frame with the same variables and one row, the summary indicators.

Author(s)

Paul E. Johnson pauljohn@ku.edu

Examples

myDat <- data.frame(x=rnorm(100), y=rpois(100,l=4), z = cut(rnorm(100), c(-10,-1,0,10)))
centralValues(myDat)

rockchalk

Regression Estimation and Presentation

v1.8.144
GPL (>= 3.0)
Authors
Paul E. Johnson [aut, cre], Gabor Grothendieck [ctb]
Initial release
2019-03-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.