 R Programming Problems

Subject Mathematics Statistics-R Programming

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)
names(coronary)
#  "ID"       "AGE"      "SBP"      "DBP"      "CHOL"    "HEIGHT"
#  "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,])}
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

Related Homework Solutions

Statistics & R-Programming Questions \$20.00
Statistics
Mathematics
R-Programming
Division
Remainder
Binary Arithmetic
Computation
Codes
Functions
Statements
Variables
Digits
Cases
Simple Proportions and Binomials \$30.00
Probability
Statistics
Mathematics
Proportions
Binomials
Factorials
Trials
Equations
Denominators
Pairwise Combinations
Optimal Strategy
R Programming
Functions
R Programming Problems \$30.00
Statistics
Mathematics
R Programming
Temperatures
Data
Probability
Correlation
Research
Results
Tables
Functions
Statistics Questions \$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 \$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
Live Chats