Description Usage Arguments Details Value Examples
View source: R/designmatrix_gui.R
Loads a graphical interface (via Shiny) to specify and adjust a design matrix given a data set with categorical predictors.
1 | designmatrix_gui(df = NULL, select = NULL, dm = NULL, digits = 2)
|
df |
A data frame with the observations for the dependent variable and associated grouping variables. |
select |
A list with...
|
dm |
An object of class |
digits |
The number of digits to round to when computing the group means. |
The app displays four tabs:
Summary of conditions and their associated descriptive statistcs.
Matrix of inputs to allow users to customize the design matrix. Clicking the 'Update' button updates the design matrix across the other tabs.
Plot of the observed group means against the predicted values. Columns of the design matrix can be excluded to examine the impact of different effects.
Table showing how coefficients are combined to estimate the group means.
Once the user has finished customizing the design matrix,
clicking the 'Save' button will stop the app and return
the updated designmatrix
object.
An object of class designmatrix
.
1 2 | # Use 'crabs' data set from 'MASS' package
dm = designmatrix_gui( MASS::crabs, list( 'FL', c( 'sp', 'sex' ) ) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.