R6 Class representing the Goodness-of-Fit test for (linear) models.
Source:R/GOF_model_test.R
GOF_model_test.Rd
This class can test the null hypothesis that data follows a particular linear model, i.e. classical linear models, generalized linear models or models of the type \(m(\beta^\top X) + \epsilon\).
Methods
Method new()
Usage
GOF_model_test$new(
model,
data,
nmb_boot_samples,
y_name,
Rn1_statistic,
gof_model_info_extractor,
gof_model_resample
)
Arguments
model
a fitted model
data
used to fit
model
nmb_boot_samples
integer specifying the number of bootstrap samples to perform
y_name
string specifying the name of the dependent variable in in
data
Rn1_statistic
statistic used to map the marked empirical process to the real line. Needs to be an instance of the class that implements Rn1_statistic
gof_model_info_extractor
an instance that implements GOF_model_info_extractor in order to apply it to
model
gof_model_resample
an instance that implements GOF_model_resample in order to apply it to
model