Question: How do I calculate standard error with bootstrap in this case? R/Rstudio help! I am using the MASS library and Boston dataset. I did the

How do I calculate standard error with bootstrap in this case? R/Rstudio help!

I am using the MASS library and Boston dataset. I did the mean of medv to get a value (22.53280....) which I named mean_med. I am needing help with how to do bootstrap on a mean in R.

Everytime I do boot(Boston$medv, mean_med, 100) I get an error message about "could not find function "statistic" I also tried putting medv into a dataframe thinking that was the error but didn't work.

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 Databases Questions!