Learn R Programming

parameters (version 0.5.0)

model_parameters.htest: Parameters from Correlations and t-tests

Description

Parameters of h-tests (correlations, t-tests).

Usage

# S3 method for htest
model_parameters(model, bootstrap = FALSE, ...)

Arguments

model

Object of class htest.

bootstrap

Should estimates be bootstrapped?

...

Arguments passed to or from other methods.

Value

A data frame of indices related to the model's parameters.

Examples

Run this code
# NOT RUN {
model <- cor.test(mtcars$mpg, mtcars$cyl, method = "pearson")
model_parameters(model)

model <- t.test(iris$Sepal.Width, iris$Sepal.Length)
model_parameters(model)

model <- t.test(mtcars$mpg ~ mtcars$vs)
model_parameters(model)

model <- t.test(iris$Sepal.Width, mu = 1)
model_parameters(model)
# }

Run the code above in your browser using DataLab