Learn R Programming

bain (version 0.2.10)

get_estimates: Get estimates from a model object

Description

Get estimates from a model object. This convenience function allows you to see that coefficients are properly extracted, note how their names will be parsed, and inspect their values.

Usage

get_estimates(x, ...)

Value

An object of class 'model_estimates'

Arguments

x

A model object.

...

Parameters passed to and from other functions.

Examples

Run this code
if (FALSE) {
# Example 1
m_tt <- t.test(iris$Sepal.Length[1:20], iris$Sepal.Length[21:40])
get_estimates(m_tt)
# Example 2
m_lm <- lm(Sepal.Length ~., iris)
get_estimates(m_lm)
}

Run the code above in your browser using DataLab