Skip to content
Snippets Groups Projects
Commit 4d996e6c authored by Walmes Marques Zeviani's avatar Walmes Marques Zeviani
Browse files

Adequações para exibição.

parent aaba2610
Branches 48-criar-rotas-de-recursos
No related tags found
No related merge requests found
Pipeline #
...@@ -54,8 +54,6 @@ str(L) ...@@ -54,8 +54,6 @@ str(L)
L <- do.call(rbind, L) L <- do.call(rbind, L)
library(reshape)
M <- melt(data = L, id.vars = "n", M <- melt(data = L, id.vars = "n",
variable_name = "estim") variable_name = "estim")
str(M) str(M)
...@@ -74,19 +72,13 @@ str(M) ...@@ -74,19 +72,13 @@ str(M)
with(M, tapply(value, list(estim, n), mean)) with(M, tapply(value, list(estim, n), mean))
with(M, tapply(value, list(estim, n), sd)) with(M, tapply(value, list(estim, n), sd))
aggregate(M$value[subscripts], xtabs(~estim + n, data = M)
M$estim[subscripts],
FUN = function(x) c(mean(x), sd(x)))
a <- aggregate(cbind(y = M$value), a <- aggregate(cbind(y = M$value),
by = list(M$estim), by = list(M$estim, M$n),
FUN = function(x) c(mean(x), sd(x))) FUN = function(x) c(mean(x), sd(x)))
a a
c(t(apply(a[, -1], 1, FUN = function(x) { x[1] + c(-1, 0, 1) * x[2]})))
xtabs(~estim + n, M)
densityplot(~value | factor(n), groups = estim, data = M, densityplot(~value | factor(n), groups = estim, data = M,
# scales = "free", # scales = "free",
auto.key = TRUE, as.table = TRUE, auto.key = TRUE, as.table = TRUE,
...@@ -159,6 +151,9 @@ obj <- qcc(data = da, type = "S") ...@@ -159,6 +151,9 @@ obj <- qcc(data = da, type = "S")
n <- c(5, 3, 5, 5, 5, 4, 4, 5, 4, 5, 5, 5, 3, 5, 3, 5, 4, 5, 5, 3, 5, 5, n <- c(5, 3, 5, 5, 5, 4, 4, 5, 4, 5, 5, 5, 3, 5, 3, 5, 4, 5, 5, 3, 5, 5,
5, 5, 5) 5, 5, 5)
da <- data.frame(i = rep(1:length(n), 5),
x = x)
# Cada amostra separada. # Cada amostra separada.
L <- do.call(rbind, L <- do.call(rbind,
by(data = da, INDICES = da$i, by(data = da, INDICES = da$i,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment