getPar | R Documentation |
Retrieves several variables from an RSA object
getPar(x, type = "coef", model = "full", digits = NA, ...)
x |
RSA object |
type |
One of: "syntax", "coef", "R2", "R2.adj", "free", "summary", "p.value" |
model |
A string specifying the model; defaults to "full" |
digits |
Number of digits the output is rounded to; if NA, digits are unconstrained |
... |
Additional parameters passed to the extraction function |
None so far.
RSA
set.seed(0xBEEF) n <- 300 err <- 2 x <- rnorm(n, 0, 5) y <- rnorm(n, 0, 5) df <- data.frame(x, y) df <- within(df, { diff <- x-y absdiff <- abs(x-y) SD <- (x-y)^2 z.sq <- SD + rnorm(n, 0, err) }) r1 <- RSA(z.sq~x*y, df, models=c("full", "SSQD")) getPar(r1, "syntax") getPar(r1, "R2") getPar(r1, "coef")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.