Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files
server.R
CHANGED
|
@@ -33,7 +33,7 @@ shinyServer(function(input, output) {
|
|
| 33 |
|
| 34 |
hist(datos, probability = TRUE, col = "lightcyan",
|
| 35 |
main = paste("Histogram and estimated density assuming", dist_sel),
|
| 36 |
-
xlab = "
|
| 37 |
|
| 38 |
x_seq <- seq(min(datos), max(datos), length.out = 200)
|
| 39 |
|
|
@@ -50,7 +50,8 @@ shinyServer(function(input, output) {
|
|
| 50 |
} else if(dist_sel == "exGAUS") {
|
| 51 |
# Ajuste con fitdistr
|
| 52 |
fit <- tryCatch({
|
| 53 |
-
mod <- gamlss(datos~1, family=exGAUS
|
|
|
|
| 54 |
}, error = function(e) NULL)
|
| 55 |
|
| 56 |
if(!is.null(fit)) {
|
|
@@ -63,7 +64,8 @@ shinyServer(function(input, output) {
|
|
| 63 |
} else if(dist_sel == "WALD") {
|
| 64 |
# Ajuste con fitdistr
|
| 65 |
fit <- tryCatch({
|
| 66 |
-
mod <- gamlss(datos~1, family=WALD
|
|
|
|
| 67 |
}, error = function(e) NULL)
|
| 68 |
|
| 69 |
if(!is.null(fit)) {
|
|
@@ -74,7 +76,8 @@ shinyServer(function(input, output) {
|
|
| 74 |
}
|
| 75 |
} else if(dist_sel == "ExWALD") {
|
| 76 |
fit <- tryCatch({
|
| 77 |
-
fit <- gamlss(datos~1, family=ExWALD
|
|
|
|
| 78 |
}, error = function(e) NULL)
|
| 79 |
|
| 80 |
if(!is.null(fit)) {
|
|
@@ -106,7 +109,8 @@ shinyServer(function(input, output) {
|
|
| 106 |
|
| 107 |
} else if(dist_sel == "exGAUS") {
|
| 108 |
fit <- tryCatch({
|
| 109 |
-
mod <- gamlss(datos~1, family=exGAUS
|
|
|
|
| 110 |
}, error = function(e) NULL)
|
| 111 |
|
| 112 |
if(!is.null(fit)) {
|
|
@@ -127,7 +131,8 @@ shinyServer(function(input, output) {
|
|
| 127 |
|
| 128 |
} else if(dist_sel == "WALD") {
|
| 129 |
fit <- tryCatch({
|
| 130 |
-
mod <- gamlss(datos~1, family=WALD
|
|
|
|
| 131 |
}, error = function(e) NULL)
|
| 132 |
|
| 133 |
if(!is.null(fit)) {
|
|
@@ -147,7 +152,8 @@ shinyServer(function(input, output) {
|
|
| 147 |
|
| 148 |
} else if(dist_sel == "ExWALD") {
|
| 149 |
fit <- tryCatch({
|
| 150 |
-
fit <- gamlss(datos~1, family=ExWALD
|
|
|
|
| 151 |
}, error = function(e) NULL)
|
| 152 |
|
| 153 |
if(!is.null(fit)) {
|
|
|
|
| 33 |
|
| 34 |
hist(datos, probability = TRUE, col = "lightcyan",
|
| 35 |
main = paste("Histogram and estimated density assuming", dist_sel),
|
| 36 |
+
xlab = "RT")
|
| 37 |
|
| 38 |
x_seq <- seq(min(datos), max(datos), length.out = 200)
|
| 39 |
|
|
|
|
| 50 |
} else if(dist_sel == "exGAUS") {
|
| 51 |
# Ajuste con fitdistr
|
| 52 |
fit <- tryCatch({
|
| 53 |
+
mod <- gamlss(datos~1, family=exGAUS,
|
| 54 |
+
control=gamlss.control(n.cyc=5000, trace=TRUE))
|
| 55 |
}, error = function(e) NULL)
|
| 56 |
|
| 57 |
if(!is.null(fit)) {
|
|
|
|
| 64 |
} else if(dist_sel == "WALD") {
|
| 65 |
# Ajuste con fitdistr
|
| 66 |
fit <- tryCatch({
|
| 67 |
+
mod <- gamlss(datos~1, family=WALD,
|
| 68 |
+
control=gamlss.control(n.cyc=5000, trace=TRUE))
|
| 69 |
}, error = function(e) NULL)
|
| 70 |
|
| 71 |
if(!is.null(fit)) {
|
|
|
|
| 76 |
}
|
| 77 |
} else if(dist_sel == "ExWALD") {
|
| 78 |
fit <- tryCatch({
|
| 79 |
+
fit <- gamlss(datos~1, family=ExWALD,
|
| 80 |
+
control=gamlss.control(n.cyc=5000, trace=TRUE))
|
| 81 |
}, error = function(e) NULL)
|
| 82 |
|
| 83 |
if(!is.null(fit)) {
|
|
|
|
| 109 |
|
| 110 |
} else if(dist_sel == "exGAUS") {
|
| 111 |
fit <- tryCatch({
|
| 112 |
+
mod <- gamlss(datos~1, family=exGAUS,
|
| 113 |
+
control=gamlss.control(n.cyc=5000, trace=TRUE))
|
| 114 |
}, error = function(e) NULL)
|
| 115 |
|
| 116 |
if(!is.null(fit)) {
|
|
|
|
| 131 |
|
| 132 |
} else if(dist_sel == "WALD") {
|
| 133 |
fit <- tryCatch({
|
| 134 |
+
mod <- gamlss(datos~1, family=WALD,
|
| 135 |
+
control=gamlss.control(n.cyc=5000, trace=TRUE))
|
| 136 |
}, error = function(e) NULL)
|
| 137 |
|
| 138 |
if(!is.null(fit)) {
|
|
|
|
| 152 |
|
| 153 |
} else if(dist_sel == "ExWALD") {
|
| 154 |
fit <- tryCatch({
|
| 155 |
+
fit <- gamlss(datos~1, family=ExWALD,
|
| 156 |
+
control=gamlss.control(n.cyc=5000, trace=TRUE))
|
| 157 |
}, error = function(e) NULL)
|
| 158 |
|
| 159 |
if(!is.null(fit)) {
|