Converts robust effect size index (S) to Cohen's f^2 (effect size for multiple regression) using the formula from Vandekar, Tao, & Blume (2020).
S2fsq(S)
Arguments
S: Numeric,the robust effect size index.
Returns
Returns an estimate of Cohen's f^2 based on the RESI
Details
The formula for the conversion is:
f2=S2
Examples
# fit a linear regression model with continuous outcome and predictormod = lm(charges ~ age, data = RESI::insurance)# obtain t value for calculating RESIt = summary(mod)$coefficients[2,"t value"]# calculate RESIS = t2S(t, n =1338, rdf =1336)# convert to f^2S2fsq(S)