getPar: Retrieves several variables from an RSA object

View source: R/getPar.R

getParR Documentation

Retrieves several variables from an RSA object

Description

Retrieves several variables from an RSA object

Usage

getPar(x, type = "coef", model = "full", digits = NA, ...)

Arguments

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

Details

None so far.

See Also

RSA

Examples


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")

nicebread/RSA documentation built on Oct. 3, 2023, 6:52 a.m.