BstrModel-class.RdS4 class for representing the statistical model
mspec_filemodelspec file
main_effectcharacter string containing an independent variable whose effect you want to measure. It could be disease status, age, gender etc. This should strictly be a single variable. This can be either a categorical or a continuous variable.
covariatescharacter string containing a set of other predictors (variables) in the model. If more than
one covariates are included, they should be separated by a + operator similar to an R formula.
corr_varcharacter variable name. This should be present in the demographics csv file associated
with bstr_data.
corr_valuesnumeric vector to store correlation coefficients
corr_values_masked_adjustednumeric vector storing the masked correlation coefficients corresponding to the adjusted p-values
group_varCategorical variable name. This should be present in the demographics csv file associated
with bstr_data.
model_typecharacter string denoting the type of model. Should be one of "bstr_anova",
"bstr_corr", "bstr_corr", "pairedttest", "unpairedttest" or "bstr_lmer"
fullmodelcharacter string like an R formula denoting the full model including both the main effect and covariates.
nullmodelcharacter string like an R formula denoting the null model including covariates only
fullvarscharacter list of individual variables in the full model
nullvarscharacter list of individual variables in the null model
lm_formulaX_design_fulla design matrix of the type model.matrix() for the full model
X_design_nulla design matrix of the type model.matrix() for the null model
Npfullnumber of variables in the full model
Npnullnumber of variables in the null model
uniqueunique variable obtained as a setdiff(fullvars, nullvars)
pvaluesnumeric vector storing the p-values
tvaluesnumeric vector storing the t-statistics
tvalues_signnumeric vector storing the sign of the t-statistics
Fstatnumeric vector storing the F-statistics
beta_coeffnumeric vector storing the beta coefficients
rssnumeric vector storing the residual sum of squares
residualsnumeric vector storing residuals # TODO: Check if this variable can be eliminated
senumeric vector storing the standard error
mult_compcharacter type of multiple comparison adjustment. Takes values of "fdr"
pvalues_adjustednumeric vector storing the adjusted p-values
tvalues_adjustednumeric vector storing the t-values corresponding to the adjusted p-values
stats_commandslist of R commands (primarily for ROI analysis)
load_data_commandcharacter string for the command used to load the data