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(β^\top X) + ε.
new()GOF_model_test$new( model, data, nmb_boot_samples, y_name, Rn1_statistic, gof_model_info_extractor, gof_model_resample )
modela fitted model
dataused to fit model
nmb_boot_samplesinteger specifying the number of bootstrap samples to perform
y_namestring specifying the name of the dependent variable in
in data
Rn1_statisticstatistic 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_extractoran instance that implements
GOF_model_info_extractor in order to apply it to
model
gof_model_resamplean instance that implements
GOF_model_resample in order to apply it to
model
An instance of the Class
get_Rn1_org()calculates the marked empricial process for model
GOF_model_test$get_Rn1_org()
vector ordered by the inner product of the estimated parameter and the independent variables
get_Rn1_boot()calculates the marked empricial process for the
resampled versions of model
GOF_model_test$get_Rn1_boot()
list of length nmb_boot_samples where every element
is a vector ordered by the inner product of the estimated
parameter and the dependent variables
get_pvalue()p-value for Goodness-of-Fit-test for model
GOF_model_test$get_pvalue()
p-value for the null hypothesis that the dependent variable
was generated according to model
clone()The objects of this class are cloneable with this method.
GOF_model_test$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.