script.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# set seed for reproducibility
set.seed
(
3
)
# set number of sampling iterations
N
<-
# initialize `beta_hats`
beta_hats
<-
# conduct the simulation using `for()`
for
(
i
in
1
:
N
)
{
}
# compare the mean of estimates to the true parameter
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
R Console
1
>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX