| m2beta | R Documentation |
Despite conducting analysis of proportional data in M space, for publication figures the estimated values are commonly shown in the original space (range between 0 and 1). This function provides backscaling of the M values to original space by inverting the logit transformation done by beta2m()
m2beta(M)
M |
vector or matrix holding the original data |
Data are transformed according to
b=\frac{2^M}{2^M+1}
A named vector/matrix with same dimensions as M and transformed values
b = 1:99 / 100
M = beta2m(b)
plot(b,m2beta(M))
print(all.equal(b, m2beta(M)))