Displaying 1 result from an estimated 1 matches for "tconvert".
Did you mean:
convert
2011 Jul 08
1
Confused about a warning message
I define the following function to convert a t-value with degrees of freedom
DF to another t-value with different degrees of freedom fullDF:
tConvert <- function(tval, DF, fullDF) ifelse(DF>=1, qt(pt(tval, DF),
fullDF), 0)
It works as expected with the following case:
> tConvert(c(2,3), c(10,12), 12)
[1] 1.961905 3.000000
However, it gives me warning for the example below although the output is
still as intended:
> tConvert(c(2,3...