Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use this data: melanoma.csvDownload melanoma.csv # You want to conduct a Chi Square Test of Independence for sex and status of melanoma. The Melanoma data

Use this data:
melanoma.csvDownload melanoma.csv
# You want to conduct a Chi Square Test of Independence for sex and status of melanoma. The Melanoma data frame has data on 205 patients in Denmark with malignant melanoma. Melanoma is skin cancer caused by too much sunlight. Data are de-identified and publicly available.
# Data variables are:
# time: survival time in days, possibly censored.
# status: 1 died from melanoma, 2 alive, 3 dead from other causes
# sex: 1= male, 0= female
# age: age in years
# year: of operation
# thickness: tumour thickness in mm
# ulcer: 1= presence, 0= absence.
# Source: P. K. Andersen, O. Borgan, R. D. Gill and N. Keiding (1993) Statistical Models based on Counting Processes. Springer.
Directions:
# import the data
# display data information
# display head of data
# replace sex values 0 and 1 with female and male respectively
# replace statue 1= died from melanoma, 2= alive, 3= dead from other causes with their text labels
# display head of data
# create a cross table (two way table) of sex and status
# conduct the Chi Square Test of Independence for sex and status.
# print the p value from the Chi Square Test
# State the conclusion from the test

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions