|
library(shiny)
|
|
library(markdown)
|
|
|
|
shinyUI(pageWithSidebar(
|
|
headerPanel(title=HTML("Prueba de hip贸tesis para el cociente de
|
|
varianzas σ<sup>2</sup><sub>1</sub> /
|
|
σ<sup>2</sup><sub>2</sub>"),
|
|
windowTitle="PH coc varianzas"),
|
|
|
|
sidebarPanel(
|
|
h5("Esta aplicaci贸n sirve para realizar prueba de hipotesis
|
|
para el cociente de varianzas de variables cuantitativas
|
|
con distribuci贸n normal."),
|
|
|
|
h6("La aplicaci贸n usa una base de datos de ejemplo pero el usuario
|
|
puede cargar su propia base de datos."),
|
|
|
|
fileInput(inputId="file1",
|
|
label="Use el bot贸n siguiente para cargar su base de datos.",
|
|
accept = c(
|
|
"text/csv",
|
|
"text/comma-separated-values",
|
|
"text/tab-separated-values",
|
|
"text/plain",
|
|
".csv",
|
|
".tsv"
|
|
)),
|
|
|
|
checkboxInput(inputId="header",
|
|
label="驴Tiene encabezado la base de datos?",
|
|
value=TRUE),
|
|
|
|
selectInput(inputId="sep",
|
|
label = "驴Cu谩l es la separaci贸n de los datos?",
|
|
choices = list(Tab="\t", Comma=",",
|
|
Semicolon=";", "Space"=" "),
|
|
selected = ";"),
|
|
|
|
selectInput(inputId="variable1",
|
|
label=p("Elija la variable",
|
|
span("cuantitativa", style = "color:red"),
|
|
"para realizar la prueba de hip贸tesis."),
|
|
choices=""),
|
|
|
|
selectInput(inputId="variable2",
|
|
label=p("Elija la variable",
|
|
span("cualitativa", style = "color:blue"),
|
|
"de agrupacion, DEBE tener 2 niveles y ser un factor."),
|
|
choices=""),
|
|
|
|
selectInput(inputId="h0",
|
|
label=HTML("La hip贸tesis nula de la prueba es Ho:
|
|
σ<sup>2</sup><sub>1</sub> /
|
|
σ<sup>2</sup><sub>2</sub> = 1,
|
|
elija el tipo de hipotesis alterna
|
|
< , ≠ o >"),
|
|
choices=list("Menor" = "less",
|
|
"Diferente" = "two.sided",
|
|
"Mayor" = "greater"),
|
|
selected = "two.sided"),
|
|
|
|
sliderInput(inputId="alfa",
|
|
label=HTML("Opcional: elija un nivel de confianza para
|
|
construir el intervalo de confianza para
|
|
el cociente
|
|
σ<sup>2</sup><sub>1</sub> /
|
|
σ<sup>2</sup><sub>2</sub>"),
|
|
min=0.90, max=0.99,
|
|
value=0.95, step=0.01),
|
|
|
|
img(src="https://raw.githubusercontent.com/fhernanb/fhernanb.github.io/refs/heads/main/my_docs/logo_unal_shiny.png",
|
|
height = 60, width = 120),
|
|
img(src="https://raw.githubusercontent.com/fhernanb/fhernanb.github.io/refs/heads/main/my_docs/logo_udea_shiny.png",
|
|
height = 25, width = 70),
|
|
img(src="https://raw.githubusercontent.com/fhernanb/fhernanb.github.io/refs/heads/main/my_docs/logo_cua_shiny.png",
|
|
height = 40, width = 110),
|
|
br(),
|
|
br(),
|
|
tags$a(href="https://srunal.github.io", "https://srunal.github.io")
|
|
|
|
),
|
|
|
|
mainPanel(
|
|
tabsetPanel(type = "pills",
|
|
tabPanel(title="Resultados",
|
|
h5("A continuaci贸n el histograma, densidad, QQplot
|
|
y valor-P para la prueba de normalidad
|
|
Shapiro-Wilk de cada una de las
|
|
dos muestras."),
|
|
plotOutput("appPlot",
|
|
width="500px",
|
|
height="300px"),
|
|
|
|
h4("- Tabla de resumen con estad铆sticos muestrales:"),
|
|
tableOutput("statistic"),
|
|
|
|
h4("- Resultados de la prueba de hip贸tesis:"),
|
|
textOutput("resul1"),
|
|
|
|
h4(HTML("- Intervalo de confianza para
|
|
el cociente
|
|
σ<sup>2</sup><sub>1</sub> /
|
|
σ<sup>2</sup><sub>2</sub>:")),
|
|
textOutput("resul2")
|
|
),
|
|
|
|
tabPanel("Datos",
|
|
"A continuaci贸n los datos que est谩 usando
|
|
la aplicaci贸n.",
|
|
uiOutput("summary")),
|
|
|
|
tabPanel("Teor铆a", includeHTML("include.html"))
|
|
|
|
)
|
|
)
|
|
|
|
)) |