Question
I need help with R coding homework. the answers are uploaded but I cannot see them. the question is: We analyze the contract of the
I need help with R coding homework. the answers are uploaded but I cannot see them. the question is: We analyze the contract of the Democratic Party nominee winning a given state $j$. The data set `intrade08.csv` contains the contract price of the market for each state on each day $i$ leading up to the election. We will interpret the `PriceD` as the probability $p_{ij}$ that the Democrat would win state $j$ if the election were held on day $i$. To treat `PriceD` as a probability, divide it by 100 so it ranges from 0 to 1. Call this new variable `PriceD.pr`. Subset the data to \underline{1 day before} Election Day (November 4, 2008) and merge it with the election outcome data.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started