{"action":"created","comment":{"url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls/comments/29554107","id":29554107,"diff_hunk":"@@ -0,0 +1,391 @@\n+---\n+title: \"Replication of Demographic Imperative Project\"\n+author: \"Grace Tien and Jessamin Birdsall\"\n+date: \"April 26, 2015\"\n+output: html_document\n+---\n+\n+The paper we have chosen to replicate is: \"The Demographic Imperative in Religious Change in the United States,\" written by Hout, Greeley, and Wilde (2001). The question that the authors are trying to answer is: Over the course of the last century, why has affiliation with \"mainline\" Protestantism declined, while affiliation with \"conservative\" Protestantism has increased in the United States?  (Broadly speaking, \"conservative\" refers to more theologically conservative denominations and \"mainline\" refers to more liberal denominations.) To date, almost all sociological scholarship related to this question has assumed that mainline decline is the result of people converting/switching from mainline to conservative Protestantism. This paper argues that denominational switching actually accounts for *none* of the mainline decline. They argue that the most significant variable explaning mainline decline is *higher fertility* among conservative Protestants. In this paper, they use GSS data to test 4 hypotheses about the source of mainline decline: 1) higher fertility of conservative Protestants, 2) higher rate of mainline to conservative switching, 3) higher rate of apostasy among mainliners, 4) higher inflow of outsiders to conservative Protestant denominations. Looking at all cohorts born between 1900 and 1973, the authors develop demographic simulation models based on the variables of fertility, religious origins, and current religion. They then make counterfactual predictions in order to isolate the relative contributions of each of these variables to the observed decline in mainline affiliation. \n+\n+```{r}\n+# Install packages and load libraries. Because we are working with the GSS Stata file (downloaded from the NORC website), we have to use the foreign package in order to read it in R. To read the excel files, we need the xlsx package. \n+\n+library(dplyr)\n+library(ggplot2)\n+library(broom)\n+library(grid)\n+library(stargazer)\n+library(foreign)\n+library(xlsx)\n+library(gdata)\n+\n+# Open the file. Within the code, we insert convert.underscore = TRUE because R Stata uses underscores in variable names, but R does not. \n+\n+GSS.df <- read.dta(\"GSS7214_R1.DTA\", convert.factors = FALSE, convert.underscore=TRUE)\n+\n+# Load the other documents shared by the authors of the paper. The authors shared a few excel files with us that show some of their calculations. We load them here for reference, although we are not able to interpret all of the calculations within them. \n+\n+maintrend.df <- read.dta(\"Hout/maintrend.dta\", convert.factors = FALSE, convert.underscore=TRUE)\n+\n+maincohort.df <- read.dta(\"Hout/maincohort.dta\", convert.factors = F, convert.underscore=TRUE)\n+\n+moblow.df <- read.dta(\"Hout/moblow.dta\", convert.factors = F, convert.underscore=TRUE)\n+\n+hout.df <- read.xlsx(\"Hout/Scenarios.xls\", sheetName = \"switching.within.prot\")\n+\n+# Select relevant variables. We are interested primarily in the variables of adult religious affiliation (relig), adult Protestant affiliation (fund), childhood Protestant affiliation (fund16), and total number of children born (childs) to the women in the sample. We filter out data collected after the year 1998, because the authors the used GSS data until 1998. Like the authors, we consider only women aged 25-74 who were born between 1903 and 1973.\n+\n+GSS1.df <- GSS.df %>%\n+  select(cohort, age, sex, relig, relig16, fund, fund16, childs, year) %>%\n+  arrange(desc(cohort)) %>%\n+  filter(year <= 1998, cohort >= 1903, cohort <= 1973, age >= 25, age <= 74, !is.na(relig), !is.na(relig16), !is.na(fund), !is.na(fund16), !is.na(childs))\n+```\n+\n+*Figure 1: Fertility by Denominational Type* \n+\n+```{r}\n+# Replicate Figure 1. The first figure in the paper is a graph of fertility by denominational type (e.g. mainline and conservative). The x axis is year of birth (ranging from 1903 to 1950) and the y axis is births per woman.\n+\n+# Recode denominations. Before we can do the calculations that go into this figure, we have to first recode the denominations from the GSS variables into values we can use. A person is considered mainline if s/he answered \"Protestant\" to the relig question and either \"liberal\" or \"moderate\" to the fund question. This is consistent with the authors' categorization, as best we can understand it. \n+\n+GSS1.df$adult_mainline <- ifelse((GSS1.df$fund == 2 | GSS1.df$fund == 3) & GSS1.df$relig == 1, 1, 0)\n+adult_mainline <- GSS1.df$adult_mainline\n+\n+GSS1.df$adult_cons <- ifelse((GSS1.df$fund == 1) & GSS1.df$relig == 1, 1, 0)\n+adult_cons <- GSS1.df$adult_cons\n+\n+GSS1.df$adult_prot <- ifelse((GSS1.df$fund <=3 ) & GSS1.df$relig == 1, 1, 0)\n+adult_prot <- GSS1.df$adult_prot\n+\n+# Subset the mainline fertility data.\n+\n+mainline_childs <- GSS1.df  %>% \n+  select(cohort, childs)  %>% \n+  filter(adult_mainline == 1) %>%\n+  group_by(cohort) %>%\n+  summarise(mean(childs)/n_distinct(cohort))\n+\n+# Subset the conservative fertility data.\n+\n+cons_childs <- GSS1.df  %>% \n+  select(cohort, childs)  %>% \n+  filter(adult_cons == 1) %>%\n+  group_by(cohort) %>%\n+  summarise(mean(childs)/n_distinct(cohort))\n+\n+# Combined fertility rates for Protestants.\n+\n+all_childs <- GSS1.df  %>% \n+  select(cohort, childs)  %>% \n+  filter(adult_prot == 1) %>%\n+  group_by(cohort) %>%\n+  summarise(mean(childs)/n_distinct(cohort))\n+\n+# Convert to dataframes that ggplot can recognize.\n+\n+# Children born to mainline women. \"CEB\" stands for \"children ever born.\"\n+\n+m_childs <- as.data.frame(mainline_childs)\n+names(m_childs) = c(\"m_cohort\",\"m_CEB\")\n+\n+# Children born to conservative women:\n+\n+c_childs <- as.data.frame(cons_childs)\n+names(c_childs) = c(\"c_cohort\", \"c_CEB\")\n+\n+# Children born to all Protestant women:\n+\n+all_childs <- as.data.frame(all_childs)\n+names(all_childs) = c(\"a_cohort\", \"a_CEB\")\n+\n+# Plot CEB (children ever born) for all 3 categories of women (mainline, conservative, and all together) by year of birth. The authors use \"loess\" rather than linear regression to fit the line more closely to the data. Shape = 1 makes the dots empty rather than filled in. \n+\n+p1 <- ggplot() +\n+  geom_point(data =  m_childs, aes(m_cohort, m_CEB), color = \"blue\") + \n+  geom_smooth(data = m_childs, aes(m_cohort, m_CEB), size = 1.5, method = \"loess\", span = .2, se = FALSE, color = \"blue\") +\n+  ggtitle(\"Fertility by Denomination Type\") + \n+  labs(x = \"Year of Birth\", y = \"Births per Woman\") +\n+  ylim(c(1, 4)) + \n+  xlim(c(1903, 1950)) +\n+  geom_point(data = c_childs, aes(c_cohort, c_CEB), shape = 1, color = \"red\") + \n+  geom_smooth(data = c_childs, aes(c_cohort, c_CEB), method = \"loess\", span = .2, se = FALSE, color = \"red\") +\n+  geom_smooth(data = all_childs, aes(a_cohort, a_CEB), method = \"loess\", span = .2, se = FALSE, color = \"black\")\n+# annotation_custom(grobTree(textGrob(\"FIG 1 - Fertility (children ever born) by denomination type: US Protestant women, 45-69 years old. CEB data are smoothed using loess regression.\", x = 0.1, y = 0.1, hjust = 0, gp = gpar(col = \"grey60\", fontsize = 10, fontface = \"italic\")))) \n+# For some reason this annotation is not showing up properly. \n+# The red line corresponds to mainliners, blue to conservatives, and black to the combined group. \n+p1\n+\n+```\n+\n+*Figure 2: Proportion of Protestants professing a mainline denomination by year*\n+\n+```{r}\n+# Replicate Figure 2. This figure shows the proportion of U.S. Protestants who identify as mainline by year in which the survey was taken. The x axis is year of survey (ranging from 1973 to 1998), and the y axis is proportion of Protestants professing a mainline affiliation. \n+\n+# Calculate the proportion of Mainline Protestants by year.\n+\n+m_prop <- GSS1.df  %>% \n+  group_by(year) %>%\n+  summarise(total.prot = sum(adult_prot), total.mainline= sum(adult_mainline)) %>%\n+  mutate(prop.m = total.mainline/total.prot)\n+\n+# Calculate confidence intervals\n+\n+m_prop$se <- sqrt((m_prop$prop.m * (1-m_prop$prop.m))/m_prop$total.prot)\n+m_prop$lower <- m_prop$prop.m - 1.96 * m_prop$se\n+m_prop$upper <- m_prop$prop.m + 1.96 * m_prop$se\n+\n+# Plot.\n+\n+p2 <- ggplot(data = m_prop, aes(x = year, y = prop.m)) + geom_point(color = \"firebrick\") + ggtitle(\"Proportion of Mainline Protestants\") +\n+  labs(x = \"Year\", y = \"Percentage Mainline\") +\n+  ylim(c(0.3, 0.6)) +\n+  xlim(c(1970, 2000)) +\n+  geom_smooth(method = \"loess\", span = .8, se = F) +\n+  geom_errorbar(aes(x = year, ymin = lower, ymax = upper), colour = \"black\")\n+p2\n+  \n+```\n+\n+*Figure 3: Proportion of Protestants Professing a Mainline Denomination of Year of Birth*\n+\n+```{r}\n+# This figure shows the proportion of U.S. Protestants who identify as mainline by cohort. The x axis is year of birth (ranging from 1903 to 1973), and the y axis is proportion of Protestants professing a mainline affiliation. \n+\n+# Calculate the proportion of mainline Protestants out of the total Protestants. Group by cohort. \n+\n+m_prop_cohort <- GSS1.df  %>% \n+  group_by(cohort) %>%\n+  summarise(total.prot = sum(adult_prot), total.mainline= sum(adult_mainline)) %>%\n+  mutate(prop.m = total.mainline/total.prot)\n+\n+# Calculate confidence intervals\n+\n+m_prop_cohort$se <- sqrt((m_prop_cohort$prop.m * (1-m_prop_cohort$prop.m))/m_prop_cohort$total.prot)\n+m_prop_cohort$lower <- m_prop_cohort$prop.m - 1.96 * m_prop_cohort$se\n+m_prop_cohort$upper <- m_prop_cohort$prop.m + 1.96 * m_prop_cohort$se\n+\n+# Plot\n+\n+p3 <- ggplot(data = m_prop_cohort, aes(x = cohort, y = prop.m)) + geom_point(color = \"firebrick\") + ggtitle(\"Proportion of Mainline Protestants by Year of Birth\") +\n+  labs(x = \"Year of Birth\", y = \"Percentage Mainline\") +\n+  ylim(c(0.2, 0.8)) +\n+  xlim(c(1900, 1975)) +\n+  geom_smooth(method = \"lm\", se = F) +\n+  geom_smooth(method = \"loess\", span = .4, se = F) +\n+  geom_errorbar(aes(x = cohort, ymin = lower, ymax = upper), colour = \"black\")\n+p3\n+\n+```\n+\n+*Figure 5: Observed Percentage of 25-74-year-old U.S. Protestants professing a mainline denomination and that predicted by switching between Protestant denominations by year of birth*\n+\n+```{r}\n+# The purpose of this figure is to show the observed decline in mainline affiliation, and the predicted decline if we look only at switching. We draw upon the data stored in the hout.df because it is otherwise unclear how the authors generated switching from the raw data. \n+\n+# Model 1: this will help us to predict the proportion of mainline affiliation by proportion of people who have switched from mainline to conservative. \n+\n+model1 <- glm(prop.main ~ prop.switch.mtoc, data = hout.df)\n+stargazer(model1, type = \"text\")\n+\n+# Model 2: this will help us to predict the proportion of mainline affiliation by proportion of people who have switched from conservative to mainline.\n+\n+model2 <- glm(prop.main ~ prop.switch.ctom, data = hout.df)\n+stargazer(model2, type = \"text\")\n+\n+# Calculate fitted values for Model 1\n+\n+pred_prop1 <- predict(model1, type = \"response\", newdata = hout.df)\n+hout.df$pred_prop1 <- pred_prop1\n+\n+# Calculate fitted values for Model 2\n+\n+pred_prop2 <- predict(model2, type = \"response\", newdata = hout.df)\n+hout.df$pred_prop2 <- pred_prop2\n+\n+# Plot observed and fitted values. Smooth using bandwidth of .4\n+\n+ggplot(hout.df, aes(x = birth.year, y = prop.main)) +\n+  geom_point(color = \"black\") +\n+  geom_smooth(aes(y = prop.main), method = \"loess\", se = F, span = .4, color = \"black\") +\n+  geom_point(aes(y = pred_prop1), color = \"red\") +\n+  geom_smooth(aes(y = pred_prop1), method = \"loess\", se = F, span = .4, color = \"red\") +\n+  geom_point(aes(y = pred_prop2), color = \"blue\") +\n+  geom_smooth(aes(y = pred_prop2), method = \"loess\", se = F, span = .4, color = \"blue\") +\n+  ylim(.3, .7) +\n+  ggtitle(\"Proportion Mainline, Observed and Predicted by Switching\") +\n+  labs(x = \"Year of Birth\", y = \"Percentage Mainline\")\n+\n+# The black line corresponds to the observed decline, the red line to the predictions based on Model 1 (mainline to conservative switching), and the blue line to the predictions based on Model 2 (conservative to mainline switching). Model 1 is producing predictions in line with the authors' observations, but Model 2 is not. We structured the model in the same way for both, so we are not sure why Model 2 is not producing the same predictions. \n+\n+```\n+\n+*Table 1: Denominational Switching by Type of Origin Denomination*\n+\n+```{r}\n+# As mentioned above, many social scientists and religious leaders have assumed that the phenonemon of switching (converting from one denomination to the other) is the primary explanatory variable behind the decline in mainline Protestant affiliation. The purpose of this table is to capture to what extent switching has happened across time, both within Protestantism and outside (to other religions or to no religion).\n+\n+# Create new data frame with mutated variables that capture switching dynamics. \n+\n+GSS2.df <- GSS1.df %>% \n+  select(cohort, relig, relig16, fund, fund16) %>%\n+  mutate(adult_mainline = ifelse(fund == 2 | fund == 3 & relig == 1, 1, 0), \n+kid_mainline = ifelse(fund16 == 2 | fund16 == 3 & relig16 == 1, 1, 0), \n+adult_other = ifelse(fund >2 & relig == 2 | relig == 3 | relig == 5 | relig == 6 | relig == 7 | relig == 8 | relig == 9 | relig == 10 | relig == 11 | relig == 12 | relig == 13, 1, 0),\n+adult_none = ifelse(fund >1 & relig == 4, 1, 0),\n+pm_same = sum(ifelse(adult_mainline==1 & kid_mainline == 1, 1, 0))/sum(ifelse(kid_mainline==1,1,0)),\n+         pm_otherprot = sum(ifelse(adult_mainline==0 & kid_mainline == 1,1,0))/sum(ifelse(kid_mainline==1,1,0)),\n+         pm_otherrel = sum(ifelse(adult_other==1 & kid_mainline == 1,1,0))/sum(ifelse(kid_mainline==1,1,0)),\n+         pm_none = sum(ifelse(adult_none==1 & kid_mainline == 1,1,0))/sum(ifelse(kid_mainline==1,1,0)),\n+         pc_same = sum(ifelse(adult_mainline==0 & kid_mainline == 0,1,0))/sum(ifelse(kid_mainline==0,1,0)),\n+         pc_otherprot = sum(ifelse(adult_mainline==1 & kid_mainline == 0,1,0))/sum(ifelse(kid_mainline==0,1,0)),\n+         pc_otherrel = sum(ifelse(adult_other==1 & kid_mainline == 0,1,0))/sum(ifelse(kid_mainline==0,1,0)),\n+         pc_none = sum(ifelse(adult_none==1 & kid_mainline == 0,1,0))/sum(ifelse(kid_mainline==0,1,0)))\n+\n+# Put in table format that aggregates into decades.\n+\n+tb.1 <- GSS2.df %>%\n+  mutate(tb_period = ifelse(cohort >= 1900 & cohort <= 1909, \"1900-9\", \"GSS2.df\"),\n+       tb_period = ifelse(cohort >= 1910 & cohort <= 1919, \"1910-19\", tb_period),\n+       tb_period = ifelse(cohort >= 1920 & cohort <= 1929, \"1920-29\", tb_period),\n+       tb_period = ifelse(cohort >= 1930 & cohort <= 1939, \"1930-39\", tb_period),\n+       tb_period = ifelse(cohort >= 1940 & cohort <= 1940, \"1940-49\", tb_period),\n+       tb_period = ifelse(cohort >= 1950 & cohort <= 1959, \"1950-59\", tb_period),\n+       tb_period = ifelse(cohort >= 1960 & cohort <= 1973, \"1960-73\", tb_period)) %>%\n+  arrange(cohort) %>% \n+  group_by(tb_period) %>%\n+  summarise(mean_pm_same = mean(pm_same),\n+            mean_pm_otherprot = mean(pm_otherprot),\n+            mean_pm_otherrel = mean(pm_otherrel),\n+            mean_pm_none = mean(pm_none),\n+            mean_pc_same = mean(pc_same),\n+            mean_pc_otherprot = mean(pc_otherprot),\n+            mean_pc_otherrel = mean(pc_otherrel),\n+            mean_pc_none = mean(pc_none)) \n+\n+tb.1\n+\n+# After many, many hours, this code is still not doing exactly what we want it to do. In an earlier version, we were able to get the code to calculate the proportions by decade, but for some reason the code is now just returning one proporation across all decades. \n+```\n+\n+*Table 2: Denominational Switching by Type of Current Denomination*\n+\n+Table 2 is similar to Table 1, but in reverse. It shows, for people who currently identify as mainline, the proportions who identified as other Protestant, other religion, or no religion as a child. It then shows the same for people who currently identify as conservative.\n+\n+```{r, eval = FALSE}\n+# We have asked R not to evaluate this chunk of code, because, after repeated attempts to knit, we kept getting the following error message: Error in parse(text = x, srcfile = src) : <text>:22:1:unexpected symbol 21: 22: tb.2 ^ Calls: <Anonymous>... evaluate -> parse_all -> parse_all.character -> parse\n+\n+# Create new data frame with mutated variables that capture switching dynamics\n+library(dplyr)\n+GSS3.df <- GSS1.df %>% \n+  select(cohort, relig, relig16, fund, fund16) %>%\n+  mutate(adult_mainline = ifelse(fund == 2 | fund == 3 & relig == 1, 1, 0), \n+  adult_cons = ifelse(fund == 1 & relig == 1, 1, 0),\n+  kid_cons = ifelse(fund16 == 1 & relig16 == 1, 1, 0),\n+kid_mainline = ifelse(fund16 == 2 | fund16 == 3 & relig16 == 1, 1, 0), \n+kid_other = ifelse(fund16 > 2 & relig16 == 2 | relig16 == 3 | relig16 == 5 | relig16 == 6 | relig16 == 7 | relig16 == 8 | relig16 == 9 | relig16 == 10 | relig16 == 11 | relig16 == 12 | relig16 == 13, 1, 0),\n+kid_none = ifelse(fund16 >1 & relig16 == 4, 1, 0),\n+pm_same = sum(ifelse(kid_mainline == 1 & adult_mainline==1, 1, 0))/sum(ifelse(adult_mainline == 1,1,0)),\n+         pm_otherprot = sum(ifelse(kid_cons == 1 & adult_mainline==1,1,0))/sum(ifelse(adult_mainline == 1,1,0)),\n+         pm_otherrel = sum(ifelse(kid_other == 1 & adult_mainline == 1,1,0))/sum(ifelse(adult_mainline == 1,1,0)),\n+         pm_none = sum(ifelse(kid_none ==1 & adult_mainline == 1,1,0))/sum(ifelse(adult_mainline == 1,1,0)),\n+         pc_same = sum(ifelse(kid_cons == 1 & adult_cons == 1,1,0))/sum(ifelse(adult_cons == 1,1,0)),\n+         pc_otherprot = sum(ifelse(kid_cons == 1& adult_cons == 1,1,0))/sum(ifelse(adult_cons == 1,1,0)),\n+         pc_otherrel = sum(ifelse(kid_other == 1 & adult_cons == 1,1,0)/sum(ifelse(adult_cons == 1,1,0)),\n+         pc_none = sum(ifelse(kid_none == 1 & adult_cons == 1,1,0)/sum(ifelse(adult_cons == 1,1,0)))\n+\n+# Put in table format that aggregates into decades\n+\n+tb.2 <- GSS3.df %>%\n+ arrange(cohort)  %>% \n+  mutate(tb_period = ifelse(cohort >= 1900 & cohort <= 1909, \"1900-9\", \"GSS3.df\"),\n+       tb_period = ifelse(cohort >= 1910 & cohort <= 1919, \"1910-19\", tb_period),\n+       tb_period = ifelse(cohort >= 1920 & cohort <= 1929, \"1920-29\", tb_period),\n+       tb_period = ifelse(cohort >= 1930 & cohort <= 1939, \"1930-39\", tb_period),\n+       tb_period = ifelse(cohort >= 1940 & cohort <= 1940, \"1940-49\", tb_period),\n+       tb_period = ifelse(cohort >= 1950 & cohort <= 1959, \"1950-59\", tb_period),\n+       tb_period = ifelse(cohort >= 1960 & cohort <= 1973, \"1960-73\", tb_period)) %>%\n+  group_by(tb_period) %>%\n+  summarise(mean_pm_same = mean(pm_same),\n+            mean_pm_otherprot = mean(pm_otherprot),\n+            mean_pm_otherrel = mean(pm_otherrel),\n+            mean_pm_none = mean(pm_none),\n+            mean_pc_same = mean(pc_same),\n+            mean_pc_otherprot = mean(pc_otherprot),\n+            mean_pc_otherrel = mean(pc_otherrel),\n+            mean_pc_none = mean(pc_none)) \n+#As above, this code is still not doing exactly what we want it to do. In an earlier version, we were #able to get the code to calculate the proportions by decade, but for some reason the code is now just #returning one proporation across all decades. ","path":"Replication.Rmd","position":317,"original_position":317,"commit_id":"e7d266be9b1c694fdd9c51a0d441d9fa3b816e39","original_commit_id":"e7d266be9b1c694fdd9c51a0d441d9fa3b816e39","user":{"login":"ard1209","id":9957848,"avatar_url":"https://avatars.githubusercontent.com/u/9957848?v=3","gravatar_id":"","url":"https://api.github.com/users/ard1209","html_url":"https://github.com/ard1209","followers_url":"https://api.github.com/users/ard1209/followers","following_url":"https://api.github.com/users/ard1209/following{/other_user}","gists_url":"https://api.github.com/users/ard1209/gists{/gist_id}","starred_url":"https://api.github.com/users/ard1209/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ard1209/subscriptions","organizations_url":"https://api.github.com/users/ard1209/orgs","repos_url":"https://api.github.com/users/ard1209/repos","events_url":"https://api.github.com/users/ard1209/events{/privacy}","received_events_url":"https://api.github.com/users/ard1209/received_events","type":"User","site_admin":false},"body":"Problem has been solved :)","created_at":"2015-05-03T08:48:36Z","updated_at":"2015-05-03T08:48:36Z","html_url":"https://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project/pull/1#discussion_r29554107","pull_request_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls/comments/29554107"},"html":{"href":"https://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project/pull/1#discussion_r29554107"},"pull_request":{"href":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls/1","id":34166795,"html_url":"https://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project/pull/1","diff_url":"https://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project/pull/1.diff","patch_url":"https://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project/pull/1.patch","issue_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/issues/1","number":1,"state":"open","locked":false,"title":"All commits","user":{"login":"lukebaker","id":84748,"avatar_url":"https://avatars.githubusercontent.com/u/84748?v=3","gravatar_id":"","url":"https://api.github.com/users/lukebaker","html_url":"https://github.com/lukebaker","followers_url":"https://api.github.com/users/lukebaker/followers","following_url":"https://api.github.com/users/lukebaker/following{/other_user}","gists_url":"https://api.github.com/users/lukebaker/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebaker/subscriptions","organizations_url":"https://api.github.com/users/lukebaker/orgs","repos_url":"https://api.github.com/users/lukebaker/repos","events_url":"https://api.github.com/users/lukebaker/events{/privacy}","received_events_url":"https://api.github.com/users/lukebaker/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-27T13:09:05Z","updated_at":"2015-05-03T08:48:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5470b85da9be4f498acd7bd71f00add80a75ee9b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls/1/commits","review_comments_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls/1/comments","review_comment_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/issues/1/comments","statuses_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/statuses/e7d266be9b1c694fdd9c51a0d441d9fa3b816e39","head":{"label":"soc504-s2015-princeton:all-commits","ref":"all-commits","sha":"e7d266be9b1c694fdd9c51a0d441d9fa3b816e39","user":{"login":"soc504-s2015-princeton","id":10645897,"avatar_url":"https://avatars.githubusercontent.com/u/10645897?v=3","gravatar_id":"","url":"https://api.github.com/users/soc504-s2015-princeton","html_url":"https://github.com/soc504-s2015-princeton","followers_url":"https://api.github.com/users/soc504-s2015-princeton/followers","following_url":"https://api.github.com/users/soc504-s2015-princeton/following{/other_user}","gists_url":"https://api.github.com/users/soc504-s2015-princeton/gists{/gist_id}","starred_url":"https://api.github.com/users/soc504-s2015-princeton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soc504-s2015-princeton/subscriptions","organizations_url":"https://api.github.com/users/soc504-s2015-princeton/orgs","repos_url":"https://api.github.com/users/soc504-s2015-princeton/repos","events_url":"https://api.github.com/users/soc504-s2015-princeton/events{/privacy}","received_events_url":"https://api.github.com/users/soc504-s2015-princeton/received_events","type":"Organization","site_admin":false},"repo":{"id":34667283,"name":"Religious-Change-Replication-Project","full_name":"soc504-s2015-princeton/Religious-Change-Replication-Project","owner":{"login":"soc504-s2015-princeton","id":10645897,"avatar_url":"https://avatars.githubusercontent.com/u/10645897?v=3","gravatar_id":"","url":"https://api.github.com/users/soc504-s2015-princeton","html_url":"https://github.com/soc504-s2015-princeton","followers_url":"https://api.github.com/users/soc504-s2015-princeton/followers","following_url":"https://api.github.com/users/soc504-s2015-princeton/following{/other_user}","gists_url":"https://api.github.com/users/soc504-s2015-princeton/gists{/gist_id}","starred_url":"https://api.github.com/users/soc504-s2015-princeton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soc504-s2015-princeton/subscriptions","organizations_url":"https://api.github.com/users/soc504-s2015-princeton/orgs","repos_url":"https://api.github.com/users/soc504-s2015-princeton/repos","events_url":"https://api.github.com/users/soc504-s2015-princeton/events{/privacy}","received_events_url":"https://api.github.com/users/soc504-s2015-princeton/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project","description":"","fork":true,"url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project","forks_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/forks","keys_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/teams","hooks_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/hooks","issue_events_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/issues/events{/number}","events_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/events","assignees_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/assignees{/user}","branches_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/branches{/branch}","tags_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/tags","blobs_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/git/refs{/sha}","trees_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/statuses/{sha}","languages_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/languages","stargazers_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/stargazers","contributors_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/contributors","subscribers_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/subscribers","subscription_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/subscription","commits_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/commits{/sha}","git_commits_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/git/commits{/sha}","comments_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/comments{/number}","issue_comment_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/issues/comments{/number}","contents_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/contents/{+path}","compare_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/merges","archive_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/downloads","issues_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/issues{/number}","pulls_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls{/number}","milestones_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/milestones{/number}","notifications_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/labels{/name}","releases_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/releases{/id}","created_at":"2015-04-27T13:08:24Z","updated_at":"2015-04-27T13:08:25Z","pushed_at":"2015-04-27T13:09:05Z","git_url":"git://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project.git","ssh_url":"git@github.com:soc504-s2015-princeton/Religious-Change-Replication-Project.git","clone_url":"https://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project.git","svn_url":"https://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project","homepage":null,"size":204,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"soc504-s2015-princeton:empty-branch","ref":"empty-branch","sha":"4df2956b52a7faed0c8136ee9790026804cb6cae","user":{"login":"soc504-s2015-princeton","id":10645897,"avatar_url":"https://avatars.githubusercontent.com/u/10645897?v=3","gravatar_id":"","url":"https://api.github.com/users/soc504-s2015-princeton","html_url":"https://github.com/soc504-s2015-princeton","followers_url":"https://api.github.com/users/soc504-s2015-princeton/followers","following_url":"https://api.github.com/users/soc504-s2015-princeton/following{/other_user}","gists_url":"https://api.github.com/users/soc504-s2015-princeton/gists{/gist_id}","starred_url":"https://api.github.com/users/soc504-s2015-princeton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soc504-s2015-princeton/subscriptions","organizations_url":"https://api.github.com/users/soc504-s2015-princeton/orgs","repos_url":"https://api.github.com/users/soc504-s2015-princeton/repos","events_url":"https://api.github.com/users/soc504-s2015-princeton/events{/privacy}","received_events_url":"https://api.github.com/users/soc504-s2015-princeton/received_events","type":"Organization","site_admin":false},"repo":{"id":34667283,"name":"Religious-Change-Replication-Project","full_name":"soc504-s2015-princeton/Religious-Change-Replication-Project","owner":{"login":"soc504-s2015-princeton","id":10645897,"avatar_url":"https://avatars.githubusercontent.com/u/10645897?v=3","gravatar_id":"","url":"https://api.github.com/users/soc504-s2015-princeton","html_url":"https://github.com/soc504-s2015-princeton","followers_url":"https://api.github.com/users/soc504-s2015-princeton/followers","following_url":"https://api.github.com/users/soc504-s2015-princeton/following{/other_user}","gists_url":"https://api.github.com/users/soc504-s2015-princeton/gists{/gist_id}","starred_url":"https://api.github.com/users/soc504-s2015-princeton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soc504-s2015-princeton/subscriptions","organizations_url":"https://api.github.com/users/soc504-s2015-princeton/orgs","repos_url":"https://api.github.com/users/soc504-s2015-princeton/repos","events_url":"https://api.github.com/users/soc504-s2015-princeton/events{/privacy}","received_events_url":"https://api.github.com/users/soc504-s2015-princeton/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project","description":"","fork":true,"url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project","forks_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/forks","keys_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/teams","hooks_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/hooks","issue_events_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/issues/events{/number}","events_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/events","assignees_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/assignees{/user}","branches_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/branches{/branch}","tags_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/tags","blobs_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/git/refs{/sha}","trees_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/statuses/{sha}","languages_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/languages","stargazers_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/stargazers","contributors_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/contributors","subscribers_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/subscribers","subscription_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/subscription","commits_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/commits{/sha}","git_commits_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/git/commits{/sha}","comments_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/comments{/number}","issue_comment_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/issues/comments{/number}","contents_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/contents/{+path}","compare_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/merges","archive_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/downloads","issues_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/issues{/number}","pulls_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls{/number}","milestones_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/milestones{/number}","notifications_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/labels{/name}","releases_url":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/releases{/id}","created_at":"2015-04-27T13:08:24Z","updated_at":"2015-04-27T13:08:25Z","pushed_at":"2015-04-27T13:09:05Z","git_url":"git://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project.git","ssh_url":"git@github.com:soc504-s2015-princeton/Religious-Change-Replication-Project.git","clone_url":"https://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project.git","svn_url":"https://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project","homepage":null,"size":204,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls/1"},"html":{"href":"https://github.com/soc504-s2015-princeton/Religious-Change-Replication-Project/pull/1"},"issue":{"href":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/issues/1"},"comments":{"href":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/soc504-s2015-princeton/Religious-Change-Replication-Project/statuses/e7d266be9b1c694fdd9c51a0d441d9fa3b816e39"}}}}