Question: IN R. Please help part b and c. Here is what I already have for a) a) library(MASS) mu

IN R. Please help part b and c. Here is what I already have for a)

a) library(MASS) mu <- c(0, 0) r <- 0.5 Sigma <- matrix(c(1, r, r, 1), nrow = 2) n <- 100 data <- mvrnorm(n, mu, Sigma)

for part c) use this bootsampling function already made.

bootsampling <- function(x, boot.replicates = B){ x = as.matrix(x) nx = nrow(x) bootsamples = replicate(boot.replicates, x[sample.int(nx, replace = TRUE), ]) }

part c should show the distribution in the form of histogram.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!