Get Similar Asssignment Answers & Custom Paper Writing Services

To hire a writer, fill the order form with details from your nursing assessment task brief.

Posted: March 3rd, 2022

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.

# Homework help – 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.
# Homework help – 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?
# Homework help – Write your code below.
Step 3 – Writing a function (0.5 point for each answer)
Step 3.1 – Function 1
Homework help – 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”)
# Homework help – Write your code below.
Step 3.2 – Function 2
Homework help – 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
# Homework help – Write your code below.
Step 3.3 – Use the function (male)
Use the function to compare age and third-class male survival rates.

# Homework help – 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.

# Homework help – 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.
# Homework help – Write your code below.
Answer part 3 and 4 below.

[Type your answers here]

Order | Check Discount

Tags: writing a thesis statement, write my thesis, top dissertation writing services, thesis writing services, thesis writing help

Nursing Assignment Help For You!

Special Offer! Get 20-30% Off Your Order!

Why Seek Our Custom Writing Services

Every Student Wants Quality and That’s What We Deliver

Graduate Essay Writers

Only the most qualified writers are selected to be a part of our research and editorial team, with each possessing specialized knowledge in specific subjects and a background in academic writing.

Affordable Prices

Our prices strike the perfect balance between affordability and quality. We offer student-friendly rates that are competitive within the industry, without compromising on our high writing service standards.

100% Plagiarism-Free

No AI/chatgpt use. We write all our papers from scratch thus 0% similarity index. We scan every final draft before submitting it to a customer.

How it works

When you decide to place an order with Nursing Study Bay, here is what happens:

Fill the Order Form

You will complete our order form, filling in all of the fields and giving us as much guidelines - instruction details as possible.

Assignment of Writer

We assess your order and pair it with a skilled writer who possesses the specific qualifications for that subject. They then start the research/writing from scratch.

Order in Progress and Delivery

You and the assigned expert writer have direct communication throughout the process. Upon receiving the final draft, you can either approve it or request revisions.

Giving us Feedback (and other options)

We seek to understand your experience. You can also review testimonials from other clients, from where you can select your preferred professional writer to assist with your homework assignments.

For Similar Answers, Custom Essay Writing & Assignment Help Services

Find an expert by filling an order form for your nursing paper. We write AI-plagiarism free essays and case study analysis. Anytime!

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00