Skip to content

jacoboard/code_and_writing_samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

code_and_writing_samples

Code and writing samples for Judah Axelrod

Stat_506_HW7.pdf

This is a recent assignment in my Advanced Regression Analysis class with Dr. Ian Laga. Since the format is a short paper, the context of the writing is within the file.

get_adjacency_matrices.R

The goal with this file was to create networks containing all senators who participated in each 2-year period between elections from the 101st congress to the 111th. We populated two matrices containing two different bits of information called votes and y. The (i,j)th position in votes is a number that represents the number of times senator i and senator j both voted "yea" or both voted "nay" on a bill. The (i,j)th position in y is a number that represents the number of votes in which both senator i and senator j both participated. The purpose of y is that sometimes a senator is appointed to a cabinet or ambassador position or passes away, and a special election is held. In these cases, not all senators voted the same number of times. This is important because we are modeling each cell in votes to have a binomial distribution. One of the parameters of the binomial is the number of trials which is information contained in y.

Note: I did not update the working directory in the code, nor is all of the data in this repository. Hence, this code does not work without this.

vote_101_1_00001.rds

This is an example of one of the thousands of data files that the R file listed uses.

About

Code and writing samples for Judah Axelrod

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages