residuals.twoway {twoway} | R Documentation |
Extract residuals from a twoway object
Description
Extract residuals from a twoway object
Extract fitted values from a twoway object
Usage
## S3 method for class 'twoway'
residuals(object, nonadd = FALSE, ...)
## S3 method for class 'twoway'
fitted(object, nonadd = FALSE, ...)
Arguments
object |
A |
nonadd |
If |
... |
other arguments (unused) |
Value
A numeric matrix of residuals corresponding to the data supplied to twoway
A numeric matrix of fitted values corresponding to the data supplied to twoway
Examples
data(taskRT)
task.2way <- twoway(taskRT)
residuals(task.2way)
residuals(task.2way, nonadd=TRUE)
sum(residuals(task.2way)^2) # SSE for additive model
sum(residuals(task.2way, nonadd=TRUE)^2) # SSPE, non-additive model
data(taskRT)
task.2way <- twoway(taskRT)
fitted(task.2way)
fitted(task.2way, nonadd=TRUE)
[Package twoway version 0.6.3 Index]