pval | R Documentation |
A convenient function to calculate p-values for **t-statistics**. By default p-values are calculated based on the null hypothesis that the true parameters are equal to zero. To test against other values a vector of "hypotheses" must be supplied.
pval(est, std_err, df, hypotheses = NULL)
est |
A vector of model estimates |
std_err |
A vector of standard errors |
df |
An integer giving the degrees of freedom for the test |
hypotheses |
A vector of values to test against. The vector must be the same length as 'est'. If no vector is supplied, the default test is against 0. |
A vector of p-values the length of 'est'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.