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!
featureNames
Returns the instance variable featureNames. (character)
setFeatureNames
Sets the instance variable featureNames. It further initializes the instance variables: intercept, pIntercept, slope, pSlope. (character)
intercept
Returns the instance variable intercept. (matrix)
pIntercept
Returns instance variable pIntercept. (matrix)
slope
Returns the instance variable slope. (matrix)
pSlope
Returns the instance variable pSlope. (matrix)
model
Returns the instance variable model. (robust::lmRob)
new()
Creates and returns a new pgu.regressor
object.
pgu.regressor$new(data = "tbl_df")
data
The 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")
data
Dataframe with at least two numeric attributes. (tibble::tibble)
progress
Keeps track of the analysis progress. (shiny::Progress)
resetDiagonal()
Sets the diagonal of a square matrix to NA.
pgu.regressor$resetDiagonal(data = "matrix")
data
The 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")
value
The 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")
feature
The attribute's name. (character)
The attributes column index. (numeric)
featureIsValid()
Checks if the feature is known to the class.
pgu.regressor$featureIsValid(feature = "character")
feature
An 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" )
abscissa
An attribute's name that is to be checked. (character)
ordinate
An 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" )
data
The data to be modeled. (tibble::tibble)
abscissa
An attribute's name that equals a column name in the data. (character)
ordinate
An 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")
data
The data to be modeled. (tibble::tibble)
progress
If 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")
abscissa
The name of the attribute which is assigned to the abscissa. (character)
ordinate
The 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" )
data
The data to be modeled. (tibble::tibble)
abscissa
The name of the attribute which is assigned to the abscissa. (character)
ordinate
The 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)
deep
Whether 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.