Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```{r}
- posTweets = 0
- negTweets = 0
- for (i in 1:147)
- if (prop.word.length(tweet.corpus[[i]]) == TRUE)
- posTweets = posTweets + 1
- for(i in 148:438)
- if (prop.word.length(tweet.corpus[[i]]) == TRUE)
- negTweets = negTweets + 1
- posTweets = posTweets / 147
- negTweets = negTweets / 290
- phat = negTweets/(posTweets + negTweets)
- phat
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement