Test for the dependence of two R2.
test_dependent_R2(v1, v2, v3, n = length(v1))
three numeric vectors of n = length(v1)
,
or three coefficients of determination. If inputs are three coefficients
of determination, vector length n
must be specified.
the length of vectors. n
must be specified
if the inputs are three coefficients of determination.
Return a p-value.
Be careful, the three vectors v1, v2, v3
are not symmetrical.
The function compares R2 obtained by the models v1 ~ v3
and
v2 ~ v3
.