pFromT {rrMisc} | R Documentation |
Calculate p-values from t-statistics.
pFromT(t_value = 1.96, df = 10, two.sided = FALSE)
t_value |
The t-statistics to be converted into a p-Value. |
df |
Degree of freedom in t-statistics. |
two.sided |
Indicator of the statistics be calculatede as two-sided (TURE) or one-sided (FALSE). |
utility function for conversion of p-values
corresponding p-Value from the t-, z- or F-statistics
Roland Rapold
Link{pFromZ}
and Link{pFromF}
pFromT(t_value=1.96, df=10) pFromT(t_value=1.96, df=100) pFromT(t_value=1.96, df=1000) pFromT(t_value=1.96, df=1000, two.sided = TRUE) x <- c(seq(0.0001, 0.6, 0.01), NA, seq(0.6001, 1.0, 0.01)) p_value <- pFromT(t_value=x, df=100) p_value formatPValue(p_value, digits=3)