response-methods: Get and set methods

Description Usage Arguments Methods Author(s) See Also Examples

Description

Set or get the response for a facDesign, mixDesign, gageRRDesign, taguchiDesign or pbDesign object.

Usage

 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
## S4 method for signature 'facDesign'
response(object)
## S4 replacement method for signature 'facDesign'
response(object) <- value
## S4 method for signature 'mixDesign'
response(object)
## S4 replacement method for signature 'mixDesign'
response(object) <- value
## S4 method for signature 'gageRR'
response(object)
## S4 replacement method for signature 'gageRR'
response(object) <- value
## S4 method for signature 'taguchiDesign'
response(object)
## S4 replacement method for signature 'taguchiDesign'
response(object) <- value
## S4 method for signature 'pbDesign'
response(object)
## S4 replacement method for signature 'pbDesign'
response(object) <- value
## S4 method for signature 'steepAscent'
response(object)
## S4 replacement method for signature 'steepAscent'
response(object) <- value
## S4 method for signature 'MSALinearity'
response(object)
## S4 replacement method for signature 'MSALinearity'
response(object) <- value

Arguments

object

a facDesign, mixDesign, gageRRDesign, taguchiDesign or pbDesign object

value

new response vector

Methods

signature(object = "MSALinearity")

Function to create the respone for an object of class MSALinearity.

signature(object = "facDesign")

response is a generic accessor function, and response<- is a generic replacement function. The default methods get and set the response attribute of a facDesign object.
Value must be of same length as nrow(object). If value is shorter/longer than nrow(object) the setting of the response will fail.

signature(object = "mixDesign")

response is a generic accessor function, and response<- is a generic replacement function. The default methods get and set the response attribute of a mixDesign object.
Value must be of same length as nrow(object). If value is shorter/longer than nrow(object) the setting of the response will fail.

signature(object = "gageRR")

response is a generic accessor function, and response<- is a generic replacement function. The default methods get and set the response attribute of gageRRDesign object.
Value must be of same length as nrow(object). If value is shorter/longer than nrow(object) the setting of the response will fail.

signature(object = "taguchiDesign")

response is a generic accessor function, and response<- is a generic replacement function. The default methods get and set the response attribute of taguchiDesign object. value must be of same length as nrow(object). If value is shorter/longer than nrow(object) the setting of the response will fail.

signature(object = "pbDesign")

response is a generic accessor function, and response<- is a generic replacement function. The default methods get and set the response attribute of pbDesign object. value must be of same length as nrow(object). If value is shorter/longer than nrow(object) the setting of the response will fail.

Author(s)

Thomas Roth [email protected]
Etienne Stockhausen [email protected]

See Also

factors
fracDesign
taguchiDesign
mixDesign
http://www.r-qualitytools.org

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#NA in response column
fdo = fracDesign(k = 3)   
fdo

#response
y = rnorm(8) 
  
#2^k numeric values in response column           
response(fdo) = y        
fdo

Example output

Loading required package: Rsolnp
Loading required package: MASS

Attaching package: 'qualityTools'

The following object is masked from 'package:stats':

    sigma

Warning messages:
1: In `[<-`(`*tmp*`, i, value = <S4 object of class "doeFactor">) :
  implicit list embedding of S4 objects is deprecated
2: In `[<-`(`*tmp*`, i, value = <S4 object of class "doeFactor">) :
  implicit list embedding of S4 objects is deprecated
3: In `[<-`(`*tmp*`, i, value = <S4 object of class "doeFactor">) :
  implicit list embedding of S4 objects is deprecated
  StandOrder RunOrder Block  A  B  C  y
4          4        1     1  1  1 -1 NA
3          3        2     1 -1  1 -1 NA
2          2        3     1  1 -1 -1 NA
5          5        4     1 -1 -1  1 NA
6          6        5     1  1 -1  1 NA
7          7        6     1 -1  1  1 NA
8          8        7     1  1  1  1 NA
1          1        8     1 -1 -1 -1 NA
  StandOrder RunOrder Block  A  B  C        y
4          4        1     1  1  1 -1 -0.91149
3          3        2     1 -1  1 -1 -0.64605
2          2        3     1  1 -1 -1 -1.21969
5          5        4     1 -1 -1  1  0.29409
6          6        5     1  1 -1  1 -0.53747
7          7        6     1 -1  1  1 -0.04948
8          8        7     1  1  1  1 -0.27433
1          1        8     1 -1 -1 -1  0.24015

qualityTools documentation built on May 30, 2017, 1:43 a.m.