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)

Arguments

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.

Value

A vector of p-values the length of `est`