R/sensitivity_stats.R
group_partial_r2.Rd
This function computes the partial R2 of a group of covariates in a linear regression model.
group_partial_r2(model, ...)
# S3 method for lm
group_partial_r2(model, covariates, ...)
# S3 method for fixest
group_partial_r2(model, covariates, ...)
# S3 method for numeric
group_partial_r2(F.stats, p, dof, ...)
an fixest
object with the regression model
arguments passed to other methods. First argument should either be an lm
model or a fixest
model with the
regression model or a numeric vector with the F-statistics for the group of covariates.
model covariates for which their grouped partial R2 will be computed.
F-statistics for the group of covariates.
number of parameters in the model.
residual degrees of freedom of the model.
A numeric vector with the computed partial R2.