Thank you much appreciated. I'll try this in a bit.
Just trying to highlight the differences in turnout based on restricted and non-restricted states
Thank you much appreciated. I'll try this in a bit.
Just trying to highlight the differences in turnout based on restricted and non-restricted states
As you can see, the 306 area column as become it's own entity on the bar graph, throwing the data off.
Since only the first 51 rows contain state-level data, you can make a new data frame.
StateData <- Fixed.Presidential.2020.State.Voting.Data[1:51, ]
You may have to convert all of the columns that contain numeric data using parse_number(), as I showed before. The presence of those headings in row 53 probably forced everything to be characters. You can then make your plots using the StateData data frame.
Gotcha, will try that now. Thank you
Do I need to recode again to ensure states' total votes are categorized as "1 - restrictive or 2 - nonrestrictive"?
StateData <- parse_number(StateData)
You should run it on a particular column
StateData$TotalVotes <- parse_number(StateData$TotalVotes)
I ended up doing t.test(StateData$TotalVotes ~ StateData$Restrict) which had provided me with the figures I think I need (df, t value, p-value, I also installed the "lsr" package and ran a cohen
s d test to determine the magnitude of the relationship between states with and without restrictive policies.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.