Lab – Using aRules on the Titanic dataset (I tip) essay

I need an explanation for this R question to help me study.

Week 9: Lab – Using aRules on the Titanic dataset
[NAME]
[DATE]
Instructions
Use the Titanic dataset to explore descriptive statistics, functions, and association rules. Download the titanic dataset titanic.raw.rdata from one of two locations:

https://github.com/ethen8181/machine-learning/tree/master/association_rule/R
https://sites.google.com/a/rdatamining.com/www/data/titanic.raw.rdata?attredirects=1
Note that it is not a cvs file, but rather an RData workspace. So, to load the data (assuming you saved it to the project’s data folder), one would do:

load(“data/titanic.raw.rdata”)

You need to look at titanic.raw (the name of the R dataset)

t <- titanic.raw

Now that you have the datafile, do some descriptive statistics, getting some extra practice using R. Take the Quiz for Step 1 and 2. However your submission MUST include the process of you calculating the following values in Step 1 and 2.

# Add your library below.
Step 0 – Load the data
Using the instructions above, load the dataset and save it as t.

# Write your code below.
Step 1 – Descriptive stats (0.5 point for each answer)
Compute the percentage of people that survived.
Compute the percentage of people that were children.
Compute the percentage of people that were female.
Finally, compute the percentage of people that were in first class.
# Write your code below.
Step 2 – More descriptive stats (0.5 point for each answer)
What percentage of children survived? Your answer should be written such as # 13.75% of children survived
What percentage of female survived?
What percentage of first-class people survived?
What percentage of third-class people survived?
# Write your code below.
Step 3 – Writing a function (0.5 point for each answer)
Step 3.1 – Function 1
Write a function that returns a new dataframe of people that satisfies the specified criteria of sex, age, class and survived as parameters. I’m giving you the answer for this question:

myfunction1 <- function(a,b,c,d){
df1 <- t[t$Class == a,] # filter the data that satisfied the criteria that “Class” = a
df2 <- df1[df1$Sex == b,] # filter the data that satisfied the criteria that “Sex” = b
df3 <- df2[df2$Age == c,] # filter the data that satisfied the criteria that “Age” = c
df4 <- df3[df3$Survived == d,] # filter the data that satisfied the criteria that “Survived” = d
return(df4)}
# test the function with a sample data
myfunction1(“1st”,”Female”,”Adult”,”No”)
# Write your code below.
Step 3.2 – Function 2
Write a function, using the previous function, that calculates the percentage (who lives, who dies) for a specified (parameters) of class, gender and age considering the entire number of data. The function passes four arguments. Include the following code properly in your function by improvising names of objects.

p <- nrow(df)/nrow(t) # calculate the percentage
# Write your code below.
Step 3.3 – Use the function (male)
Use the function to compare age and third-class male survival rates.

# Write your code below.
People in which category are more likely to survive?

[Type your answer here]
Step 3.4 – Use the function (female)
Use the function to compare age and first-class female survival rates.

# Write your code below.
People in which category are more likely to survive?

[Type your answer here]
Step 4 – Use aRules (0.5 point for each answer)
Use aRules to calculate some rules (clusters) for the titanic dataset.
Visualize the results.
Pick the three most interesting and useful rules. Explain these rules using natural language. Answer this in the space provided below.
How does this compare to the descriptive analysis we did on the same data set? Think critically. What was possible using one method that was not possible using the other method? Answer this in the space provided below.
# Write your code below.
Answer part 3 and 4 below.

[Type your answers here]

Instant Nursing Papers
Hire a Nursing Expert
Pages (550 words)
Approximate price: -

Why Choose Instant Nursing Papers?

Quality Nursing Papers

We assist students in achieving the best top-grade in their nursing papers, and in compliance with the provided instructions. Have your nursing paper written with a certified specialist Ph.D., Bachelor's, and Master's graduates with many years of experience in academic writing.

Experts with Ph.d., MDs and DNP Holders

Our writers have acquired Ph.D., MDs and DNP credentials from world class institutions. Our writers can handle papers from any discipline and can handle over 100+ subjects.

Nursing Papers Cheap

We provide a great deal of student-friendly prices and professionalism with all our nursing essay writing services. Our paper writing services have a user-friendly interface and professional nursing academic assistance. We are committed to assisting all students with their nursing assignments and projects regardless of their academic level.

Fast Paper Delivery

Our writers follow a strict schedule to ensure papers are delivered before the deadline to enable our editors to proofread before the final delivery to our customers. We strictly observe the early delivery of assignments to meet our clients' deadlines.

Plagiarism-free Nursing Papers

Our expert nursing paper writers are dedicated to conducting thorough research and writing papers from scratch to deliver original papers. To avoid paper plagiarism, all orders go through steps of writing, editing, and proofreading.

24Hour Customer Help

Our customer support is available 24/7/365 to help clients and make their paper writing services easy to use. Our experienced support team is available to answer your queries any time, 24 hours a day.

Try it now!

Calculate the price of your order

We'll send you the first draft for approval by at
Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Nursing Papers Writing Service

We provide Nursing Assignment Services to Nursing students. Also, we are not limited to providing Nursing assignment help to students only. We also provide assignment help and solutions to community health nursing, Anatomy & Physiology, Microbiology, Biochemistry and Biophysics, and Nutrition & Dietetics.

Essays

Nursing Essays

Sit back, relax while our writers sort you out on your most daunting nursing essay queries on how to write a good nursing essay. We got you if you are looking for the best nursing essay services.

Research

Nursing Projects

It is no doubt that qualifying for a nursing career is difficult and requires a series of tests. Most nursing students must put in a lot of work in their assignments and coursework. Instantnursingpapers.com will help you answer queries such as “who can write my nursing research paper?”.

Disserations

Nursing Dissertation Help

Instantnursingpapers.com will save you the hustle of undergoing pressure or even depression while doing your nursing dissertation paper. Save yourself from all the long sleepless nights and pressure by working with our best nursing dissertation writing professionals.

Coursework

Nursing Coursework Help

If you happen to hop into our site in search of nursing coursework help, look no further. We are the number one solution for the best nursing coursework assignments. Therefore, to complete the best APA nursing coursework, seek help from professional nursing coursework experts at instantnursingpapers.com