osepoint.blogg.se

R shiny server cost
R shiny server cost







r shiny server cost

Superpower::ANOVA_exact( (Superpower::ANOVA_design(design = '2b', n = 64, mu = c(0, 0.5), sd = 1, plot = FALSE)), alpha_level = x, verbose = FALSE)$main_results$power/100Ĭohen (1988) considered a Type 1 error rate of 5% and a Type 2 error rate of 20% balanced. Nevertheless, it works if you are very patient.

r shiny server cost

Furthermore, the output of the ANOVA_exact function prints power as 80%, not 0.8, and thus we actually have to divide the power value by 100 for the Shiny app to return the correct results.

r shiny server cost

Press calculate, and check the results 5 to 10 minutes later. Thus, the result takes a minutes to calculate. The optimization function used in this Shiny app needs to perform the power calculation multiple times. The power function in the ANOVAexact function is based on a simulation, which takes a while to perform. TOSTER::powerTOSTtwo(alpha=x, N=200, low_eqbound_d=-0.4, high_eqbound_d=0.4)įor a more challenging power function, we can use the Superpower package by Daniel Lakens and Aaron Caldwell. Some examples that work are provided below. Finally, if you use existing power functions the shiny app needs to know which package this function is from, and thus the call to the function needs to be precended by the package and '::', so 'pwr::' or 'TOSTER::'. Then, make sure the alpha value is not set, but specified as x, and that the function itself returns a single value, the power of the test. You can provide an analytic power function, either programmed yourself, or from an existing package loading on the server. The trickiest thing of using this Shiny app is entering the correct power function.









R shiny server cost