Skip to contents

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

Paul E. Johnson [email protected]

Examples

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