Description Format Details Active bindings Methods Author(s)
A class that performs pairwise robust regression on the pguIMP data set.
R6::R6Class object.
A class that performs pairwise robust regression on the pguIMP data set. This object is used by the shiny based gui and is not for use in individual R-scripts!
featureNamesReturns the instance variable featureNames. (character)
setFeatureNamesSets the instance variable featureNames. It further initializes the instance variables: intercept, pIntercept, slope, pSlope. (character)
interceptReturns the instance variable intercept. (matrix)
pInterceptReturns instance variable pIntercept. (matrix)
slopeReturns the instance variable slope. (matrix)
pSlopeReturns the instance variable pSlope. (matrix)
modelReturns the instance variable model. (robust::lmRob)
new()Creates and returns a new pgu.regressor object.
pgu.regressor$new(data = "tbl_df")
dataThe data to be modeled. (tibble::tibble)
A new pgu.regressor object.
(pguIMP::pgu.regressor)
finalize()Clears the heap and
indicates if instance of pgu.regressor is removed from heap.
pgu.regressor$finalize()
print()Prints instance variables of a pgu.regressor object.
pgu.regressor$print()
string
resetRegressor()Performes pair-wise robust linear regression on the attributes of the data tibble. Progresse is indicated by the progress object passed to the function.
pgu.regressor$resetRegressor(data = "tbl_df", progress = "Progress")
dataDataframe with at least two numeric attributes. (tibble::tibble)
progressKeeps track of the analysis progress. (shiny::Progress)
resetDiagonal()Sets the diagonal of a square matrix to NA.
pgu.regressor$resetDiagonal(data = "matrix")
dataThe matrix whose diagonal is to be reset. (matrix)
A matrix with its diagonal reset to NA. (matrix)
resetMatrix()Creates a square matrix which dimension corresponds to the length
of the instance variable featureNames. The matrix entries are set to a distict value.
The diagonal is set to NA.
pgu.regressor$resetMatrix(value = "numeric")
valueThe value the matrix entries are set to. (numeric)
A square matrix. (matrix)
featureIdx()Determines the numerical index of the column of an attribute based on the attribute name.
pgu.regressor$featureIdx(feature = "character")
featureThe attribute's name. (character)
The attributes column index. (numeric)
featureIsValid()Checks if the feature is known to the class.
pgu.regressor$featureIsValid(feature = "character")
featureAn attribute's name that is to be checked. (character)
The test result. (logical)
featurePairIsValid()Checks a if a pair of attributes different and known to the class.
pgu.regressor$featurePairIsValid( abscissa = "character", ordinate = "character" )
abscissaAn attribute's name that is to be checked. (character)
ordinateAn attribute's name that is to be checked. (character)
The test result. (logical)
createModel()Creates a robust model of linear regression between two attributes of a dataframe. The model is stored as instance variable.
pgu.regressor$createModel( data = "tbl_df", abscissa = "character", ordinate = "character" )
dataThe data to be modeled. (tibble::tibble)
abscissaAn attribute's name that equals a column name in the data. (character)
ordinateAn attribute's name that equals a column name in the data. (character)
createRegressionMatrix()Performs the actual robust linear regression routine. Iteratively runs through the attributes known to the class and creates a robust linear regression model for each valid attribute pair. The model results are stored in the instance variables: intercept, pIntercept, slope, pSlope. Here, pX represents the p-value of the respective parameter X. Displays the progress if shiny is loaded.
pgu.regressor$createRegressionMatrix(data = "tbl_df", progress = "Progress")
dataThe data to be modeled. (tibble::tibble)
progressIf shiny is loaded, the analysis' progress is stored within this instance of the shiny Progress class. (shiny::Progress)
printModel()Transforms the results of the modeling procedure for a valid pair of attributes to a dataframe and returns it.
pgu.regressor$printModel(abscissa = "character", ordinate = "character")
abscissaThe name of the attribute which is assigned to the abscissa. (character)
ordinateThe name of the attribute which is assigned to the ordinate. (character)
The analyis result as a dataframe. (tibble::tibble)
printInterceptTbl()Transfroms instance variable intercept to a dataframe and returns it.
pgu.regressor$printInterceptTbl()
Dataframe of instance variable intercept. (tibble::tibble)
printPInterceptTbl()Transfroms instance variable pIntercept to a dataframe and returns it.
pgu.regressor$printPInterceptTbl()
Dataframe of instance variable pIntercept. (tibble::tibble)
printSlopeTbl()Transfroms instance variable slope to a dataframe and returns it.
pgu.regressor$printSlopeTbl()
Dataframe of instance variable slope. (tibble::tibble)
printPSlopeTbl()Transfroms instance variable pSlope to a dataframe and returns it.
pgu.regressor$printPSlopeTbl()
Dataframe of instance variable pSlope. (tibble::tibble)
plotRegression()Creates a scatter plot of the model stored within the instance variable of the class.
pgu.regressor$plotRegression()
A scatter plot. (ggplot2::ggplot)
plotResidualDist()Creates a histogram of the residual distribution of the model stored within the instance variable of the class.
pgu.regressor$plotResidualDist()
A histogram plot. (ggplot2::ggplot)
plotResidualBox()Creates a box plot of the residual distribution of the model stored within the instance variable of the class.
pgu.regressor$plotResidualBox()
A box plot. (ggplot2::ggplot)
plotModel()Creates a model of robust linear regression. Executes all graphical exploration functions of the class and creates a composite graph based on their results.
pgu.regressor$plotModel( data = "tbl_df", abscissa = "character", ordinate = "character" )
dataThe data to be modeled. (tibble::tibble)
abscissaThe name of the attribute which is assigned to the abscissa. (character)
ordinateThe name of the attribute which is assigned to the ordinate. (character)
A composite graph. (gridExtra::grid.arrange)
clone()The objects of this class are cloneable with this method.
pgu.regressor$clone(deep = FALSE)
deepWhether to make a deep clone.
Sebastian Malkusch, malkusch@med.uni-frankfurt.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.