Learn R Programming

RSA (version 0.5.1)

bootRSA: Compute bootstrap replications for model parameteres

Description

Compute bootstrap replications for model parameteres

Usage

bootRSA(x, model = "full", ...)

Arguments

x
RSA object
model
A string specifying the model; defaults to "full"
...
Additional parameters passed to the bootstrapLavaan function

Details

None so far.

See Also

RSA

Examples

Run this code
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)
	sqdiff <- (x-y)^2
	z.sq <- sqdiff + rnorm(n, 0, err)
})

r1 <- RSA(z.sq~x*y, df)
b1 <- bootRSA(r1, model="SSD", R=5000, parallel="multicore", ncpus=2)
r1.boot.CI <- CI.boot(b1)	# compute percentile confidence intervals and percentile p-value of the bootstrapped values

Run the code above in your browser using DataLab