rand(df = 1, rdist = rnorm, args = list(), nrow,
seed = NULL)
rdist
lm
where it is inferred from the data frame, if
one is provided.df
columns. In
its intended use, the number of rows will be selected to
match the size of the data frame supplied to lm
rand(2,nrow=4)
rand(2,rdist=rpois, args=list(lambda=3), nrow=4)
summary(lm( waiting ~ eruptions + rand(1), faithful))
Run the code above in your browser using DataLab