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.

# 7
tbl <- table(CURSMOKE=d$CURSMOKE,ANGINA=d$ANGINA) # CURSMOKE will be rows, ANGINA will be columns
tbl
#             ANGINA
# CURSMOKE    0    1
#       0   1862   391
#       1   1847   334

# (b) and (c)
chisq.test(tbl, correct=F)
# Pearson's Chi-squared test
#
# data: tbl
# X-squared = 3.3738, df = 1, p-value = 0.06624

# (d)

install.packages("fmsb")
library(fmsb)
riskratio(Y=391,X=334,,m2=2253,m1=2181)
# Disease Nondisease Total
# Exposed       334       1847 2181
# Nonexposed    391       1862 2253
#
# Risk ratio estimate and its significance probability
#
# data: 334 391 2181 2253
# p-value = 0.06627
# 95 percent confidence interval:
#   0.7720333 1.0085895
# sample estimates:
#   [1] 0.8824198...

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
$30.00
Mathematics
Statistics
R Programming
Variables
Probability
Samples
Normal Distribution
Comparison
Observations
Null Hypothesis
Population
Variance
Standard Deviation
Type Error
Numerators
Critical Values
Density Lines
Vectors
Plots
Degr
Training The Model: Malicious Websites Detection
Homework Solution
$63.00
Mathematics
Statistics
Training
Model
Malicious Websites Detection
Regression
Calculations
Test Procedures
Classifications
KNN Method
Arguments
Functions
Data Sets
Statistics & R Programming Questions
Homework Solution
$30.00
Statistics
Mathematics
Computing
R Programming
Functions
Data
Grades
Min
Max
Average
Scores
Assessment
Points
Variables
Vectors
Statistics Questions
Homework Solution
$53.00
Mathematics
Statistics
Companies
Random Samples
Standard Deviation
Average Values
Confidence Intervals
Organizations
Functions
Biostatistics Questions: Principal Component Analysis
Homework Solution
$58.00
Biostatistics
Mathematics
Principal Component Analysis
Programming
Computer Science
Data
Iris Set
Matrices
Covariance
Normalization
Eigenvector
Variables
Summary
Commands
Codes
Sepal Shape
Documentation
Hypothesis Tests on Data Frames
Homework Solution
$48.00
Mathematics
Statistics
Data
Libraries
Columns
Distribution
Histogram
R-Programming
Zyxin Gene
Expressions
Cancer Classification
Get help from a qualified tutor
Live Chats