Description Usage Arguments Value
View source: R/myStatsHelpers.R
Get the degrees of freedom of a sample or population.
1 | my.degrees.of.freedom(src.vsctor, is.sample = TRUE, npe = 1)
|
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). |
numeric ; The degrees of freedom.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.