Learn R Programming

ouxy (version 2.1)

regboundfcn: range for regression parameters

Description

Set up range for regression parameters

Usage

regboundfcn(olssum = olssum)

Arguments

olssum

summary statistics from ordinary least square performed by lm.

Value

A vectors of values containing the range of regression parameters

Details

An ordinary least square analysis is performed on regression \(y \sim x_1 + x_2\). Parameter estimates \(\hat{b}\) and standard errors \(sd(\hat{b})\) are used to construct the bound using formula \(\hat{b}\pm 3sd(\hat{b})\).

Examples

Run this code
# NOT RUN {
resptrait<-rnorm(10)
predtrait1<-rnorm(10)
predtrait2<-rnorm(10)
olssum <- base::summary(lm(resptrait~predtrait1+predtrait2))
regboundfcn(olssum=olssum)


# }

Run the code above in your browser using DataLab