Test Statistic for parametric regression models (abstract class)
Source:R/TestStatistic.R
TestStatistic.Rd
This is the abstract base class for test statistic objects like CondKolmY or MEP.
Test statistics are built around the key method
calc_stat()
which calculates the particular test statistic (and
x-y-values that can be used to plot the underlying process).
Methods
Method calc_stat()
Calculate the value of the test statistic for given data and a model to test for.
Arguments
data
list()
containing the datamodel
ParamRegrModel to test for
Method get_plot_xy()
Returns vectors of x and y that can be used to plot the process corresponding to the test statistic.
Method print()
Overrides the print-method for objects of type
TestStatistic
to only print its value.
Method geom_ts_proc()
Creates a line plot showing the underlying process of the test statistic.
Arguments
...
Other arguments passed on to
ggplot2::geom_line()
. These are often aesthetics, used to set an aesthetic to a fixed value, likecolour = "red"
orsize = 3
.
Method plot()
Creates a new ggplot showing the underlying process of the test statistic.
Arguments
...
Other arguments passed on to
ggplot2::geom_line()
. These are often aesthetics, used to set an aesthetic to a fixed value, likecolour = "red"
orsize = 3
.