Description Usage Arguments Value Examples
Extract residuals from a twoway object
Extract fitted values from a twoway object
1 2 3 4 5 |
object |
A |
nonadd |
If |
... |
other arguments (unused) |
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
1 2 3 4 5 6 7 8 9 10 11 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.