View source: R/replext_helpers.R
runSimulation | R Documentation |
This internal helper function runs the appropriate simulation function based on the user-selected cell block in the Replext Shiny application. It handles the dynamic execution of either ANOVA or regression simulations based on the parameters specified by the user.
runSimulation(input)
input |
A list containing the user input parameters from the Shiny application. |
The function first checks and sets the random number seed if provided.
It then determines which simulation function to call (replext_t1_c1
or
replext_t2_c1
) based on the prefix of the cellBlock
input parameter.
The function passes user-specified parameters to the chosen simulation
function and returns the simulation results.
The result of the simulation, which can be either from replext_t1_c1
(Order Constrained ANOVA) or replext_t2_c1
(Inequality Constrained Linear
Regression), depending on the selected cell block.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.