Question

Check the file: Questions.pdf

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

# Exercise 1

library(boot)
# 1)
coronary <-read.table("Coronary.csv",header=TRUE,sep=",")
names(coronary)
# [1] "ID"       "AGE"      "SBP"      "DBP"      "CHOL"    "HEIGHT"
# [7] "WEIGHT"   "CORONARY"
medianFunc<-function(x,i){median(x[i])}

# 2)
boot.median <- boot(coronary$WEIGHT,statistic=medianFunc,R=1000)
boot.median
# 3)
boot.ci(boot.median, conf=0.95, type= "basic")
# 4)
corFunc <- function(X,i) { cor(X[i,])[2]}
boot.cor <- boot(coronary[,c("WEIGHT","SBP")],statistic=corFunc,R=1000)
boot.ci(boot.cor, conf=0.95, type= "basic")
hist(boot.cor$t,breaks=15)
qqnorm(boot.cor$t)
qqline(boot.cor$t, col = 2)...

This is only a preview of the solution. Please use the purchase button to see the entire solution

Assisting Tutor

Related Homework Solutions

Statistics & R-Programming Questions
Homework Solution
$20.00
Statistics
Mathematics
R-Programming
Division
Remainder
Binary Arithmetic
Computation
Codes
Functions
Statements
Variables
Digits
Cases
Simple Proportions and Binomials
Homework Solution
$30.00
Probability
Statistics
Mathematics
Proportions
Binomials
Factorials
Trials
Equations
Denominators
Pairwise Combinations
Optimal Strategy
R Programming
Functions
R Programming Problems
Homework Solution
$30.00
Statistics
Mathematics
R Programming
Temperatures
Data
Probability
Correlation
Research
Results
Tables
Functions
Statistics Questions
Homework Solution
$43.00
Statistics
Mathematics
R Programming
Cluster Analysis
Golub Data
Patient Groups
Research
Cluster Means
Codes
Graphs
Distances
Gene Filters
Correlation Matrix
Outliers
Regression Problems
Homework Solution
$63.00
Mathematics
Statistics
Regression
Temperatures
Data Sets
R Programming
Functions
Plots
Alternative Hypothesis
Null Hypothesis
Z-Test Statistics
P-Values
Model Fit
Space Shuttle Challenger
Probability
Get help from a qualified tutor
Live Chats