-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path11b_rs.R
69 lines (43 loc) · 1.98 KB
/
11b_rs.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
## ---- include=FALSE-----------------------------------------------------------------------------
library(tidyverse)
library(broom)
library(flextable)
library(knitr)
## ----cement-------------------------------------------------------------------------------------
library(daewr)
cement
## -----------------------------------------------------------------------------------------------
library(rsm)
grout.lin <- rsm(y ~ SO(x1, x2, x3), data = cement, subset = Block == 1)
anova(grout.lin)
## -----------------------------------------------------------------------------------------------
Treb
treb.quad <- rsm(y ~ SO(x1, x2, x3), data = Treb)
summary(treb.quad)
## -----------------------------------------------------------------------------------------------
par(mfrow=c(2,2))
contour(treb.quad, ~ x1+x2+x3)
## -----------------------------------------------------------------------------------------------
par(mfrow=c(2,2))
contour(treb.quad, ~ x1+x2+x3, at = xs(treb.quad))
## -----------------------------------------------------------------------------------------------
par(mfrow=c(2,2))
persp(treb.quad, ~x1+x2+x3, zlab = "Distancia")
## -----------------------------------------------------------------------------------------------
ridge <- steepest(treb.quad, dist = seq(0, 1.412, by=0.1), descent = FALSE)
ridge
## -----------------------------------------------------------------------------------------------
library(daewr)
Design<-DefScreen(m=8,c=0)
Design
## -----------------------------------------------------------------------------------------------
library(daewr)
design<-DefScreen(m=5,c=0,center=2,randomize=FALSE)
design
## -----------------------------------------------------------------------------------------------
library(daewr)
Smeso<-c(241,295,260,338,320,265,275,248,92.5,383,313,305,304)
FitDefSc(Smeso,design,alpha=.05)
## -----------------------------------------------------------------------------------------------
library(daewr)
FitDefSc(Smeso,design,alpha=.1)