my_update_boot: update function which searches for objects within the parent...

View source: R/abe.R

my_update_bootR Documentation

update function which searches for objects within the parent environment, bootstrap version, i.e. can only update the model based on a new dataset

Description

update function which searches for objects within the parent environment, bootstrap version, i.e. can only update the model based on a new dataset

Usage

my_update_boot(mod, data = NULL)

Examples

## Not run: 
set.seed(1)
n=100
x1<-runif(n)
x2<-runif(n)
x3<-runif(n)
y<--5+5*x1+5*x2+ rnorm(n,sd=5)
dd<-data.frame(y,x1,x2,x3)
fit<-lm(y~x1+x2+x3,x=TRUE,y=TRUE,data=dd)

ddn<-dd[-1,]
my_update_boot(fit,data=ddn)

## End(Not run)

abe documentation built on April 12, 2025, 1:54 a.m.