bootreg: Perform boot strapping

Description Usage Arguments Examples

View source: R/LinearRegression.R

Description

Perform boot strapping

Usage

1
bootreg(Y, X, iter = 1, alpha = 0.05)

Arguments

Y

response vector

X

design matrix

alpha

(=0.05) significance level for generating confidence intervals

iter(=1)

number of iterations to run bootstrap

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
df<-iris

# scrape off all non-numeric data first
df<-df[,sapply(df, is.numeric)]
df
X<-df[,-1]
Y<-as.matrix(df[,1])
X
Y
dim(X)
dim(Y)
X<-append_design_matrix(X)
dim(X)
bh=bootreg(Y,X,1000) # works just fine! Whoo!
bh

MalachiTimothyPhillips/ggfast documentation built on May 18, 2019, 11:27 p.m.