BAS
Assignment1_-_Fall_17-1.docx

# Assignment1_-_Fall_17-1.docx - YOUR NAME YOUR SECTION...

• Homework Help
• 5

This preview shows pages 1–3. Sign up to view the full content.

YOUR NAME - YOUR SECTION - Homework 1 Getting Started with R Question 0: Replace YOUR NAME, YOUR SECTION and DATE in the heading of this document with the relevant values. MW or TR suffices for section. Be aware that points will be taking off on this homework and in the future if either of these quantities are unchanged. Undoubtably, you will forget to do this at least once before you print it out. It’s fine if you hand-write that after it’s printed out. Question 1: Define a variable x to be 5 using the left-arrow notation. Translate the following expressions into R and evaluate them. x<- 5 0.1 ( 16 12 )+ 5 2 × 10 3 x + 1 #Code evaluating the expression (using x) 5 x ( x 3 + 1.5 x 4 ) #Code evaluating the expression (using x) e 1 + 0.6 x 1 + e 1 + 0.6 x #Code evaluating the expression (using x) 1 + 2 x 3 ¿ 2 / 7 ¿ #Code evaluating the expression (using x)

This preview has intentionally blurred sections. Sign up to view the full version.

Question 2: Download HW1-clickthru.xls. This is a small part of a kaggle.com competition concerned with predicting the clickthru rate of ads displayed on mobile devices. Open this file with Excel and save it as a comma-delimited file. Then, use read.csv to load this file into R, naming it . The column names are mostly self-explanatory. Variables starting with the word Site deal with the particular website on which the ad was displayed, variables starting with App deal with the App used to view the ad (Safari, Chrome, through a game, etc.), and variables starting with x are anonymized categorical variables (so trade secrets are not revealed).
This is the end of the preview. Sign up to access the rest of the document.
• Fall '16
• BrianStevens
• Comment out, SiteID

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern