my.degrees.of.freedom: Get the degrees of freedom of a sample or population.

Description Usage Arguments Value

View source: R/myStatsHelpers.R

Description

Get the degrees of freedom of a sample or population.

Usage

1
my.degrees.of.freedom(src.vsctor, is.sample = TRUE, npe = 1)

Arguments

src.vsctor

; A numeric vector to calculate the degrees of freedom over.

is.sample

; A boolean indicating that src.vector is a sample, not a population.

npe

; A numeric, how many parameters are estimated. For variance, we estimate 1 parameter (the mean) from the data. In linear regression, we estimate parameters from the data (slope and intercept).

Value

numeric ; The degrees of freedom.


vanNijnatten/Learn-Statistics documentation built on Dec. 23, 2021, 2:09 p.m.