Order for this Paper or Similar Assignment Writing Help

Fill a form in 3 easy steps - less than 5 mins.

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.

# 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]

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Why choose us

You Want Quality and That’s What We Deliver

Top Skilled Writers

Our writing team is assembled through a rigorous selection process, where we handpick accomplished writers with specialized expertise in distinct subject areas and a proven track record in academic writing. Each writer brings a unique blend of knowledge and skills to the table, ensuring that our content is not only informative but also engaging and accessible to a general college student audience

Discounted Prices

Competitive pricing is a cornerstone of our service, where we balance affordability with exceptional quality. In offering the best writers at rates that rival other writing services, we ensure that students can access top-notch content without breaking the bank unnecessarily. Our fair and transparent pricing structure is designed to provide value for money, making us a go-to choice for students seeking high-quality writing services at an affordable price.

100% Plagiarism-Free

Academic integrity is paramount to our writing service, which is why we produce original research and writing content for every paper. Each piece of work is carefully written from scratch, ensuring that every sentence, paragraph, and page is authentic and free from plagiarism. Our rigorous quality control process involves thorough scanning of every final draft, guaranteeing that the content meets the highest standards of originality and academic integrity. With keen attention to citation and referencing, we ensure that every source is properly credited, giving you complete peace of mind. We also have the best plagiarism checkers like safeassign and turnitin thus providing similarity score for each paper.

How it works

When you decide to place an order with Dissertation Help, here is what happens:

Complete the Order Form

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

Assignment of Writer

We analyze your order and match it with a writer who has the unique qualifications to complete it, and he begins from scratch.

Order in Production and Delivered

You and your writer communicate directly during the process, and, once you receive the final draft, you either approve it or ask for revisions.

Giving us Feedback (and other options)

We want to know how your experience went. You can read other clients’ testimonials too. And among many options, you can choose a favorite writer.