HW5 - HW5 HW5 xinmiao li May 8 2017 setwd\"~\/Desktop\/Econ 404 oj = read.csv\"oj.csv library(ggplot2 library(reshape2 library(plyr library(dplyr Attaching

HW5 - HW5 HW5 xinmiao li May 8 2017 setwd"~/Desktop/Econ...

This preview shows page 1 - 3 out of 3 pages.

5/10/2017 HW5 1/3 HW5 xinmiao li May 8, 2017 setwd("~/Desktop/Econ 404") oj = read.csv("oj.csv") library (ggplot2) library (reshape2) library (plyr) library (dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:plyr': ## ## arrange, count, desc, failwith, id, mutate, rename, summarise, ## summarize ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union names(oj) ## [1] "store" "brand" "week" "logmove" "feat" "price" ## [7] "AGE60" "EDUC" "ETHNIC" "INCOME" "HHLARGE" "WORKWOM" ## [13] "HVAL150" "SSTRDIST" "SSTRVOL" "CPDIST5" "CPWVOL5" oj$Q <-exp(oj$logmove)*(oj$price) names(oj) ## [1] "store" "brand" "week" "logmove" "feat" "price" ## [7] "AGE60" "EDUC" "ETHNIC" "INCOME" "HHLARGE" "WORKWOM" ## [13] "HVAL150" "SSTRDIST" "SSTRVOL" "CPDIST5" "CPWVOL5"
Image of page 1
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 3 pages?

  • Spring '08
  • Staff
  • Mean, Following, Weighted mean, Weight function, OJ, following objects

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes