#Title: WFED540 Assignment-3
#Author: Andrew Leigey
#Date: November 17, 2015
#Output: html_document


# Loading packages
require(foreign)
## Loading required package: foreign
require(dplyr)
## Loading required package: dplyr
## 
## Attaching package: 'dplyr'
## 
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## 
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
require(ggvis)
## Loading required package: ggvis
require(magrittr)
## Loading required package: magrittr
require(knitr)
## Loading required package: knitr
require(rmarkdown)
## Loading required package: rmarkdown
# The packages must be installed, if not already 
# installed, in your instance of R

# Read the SPSS .SAV file in to R
GSSdata <- read.spss("GSS.SAV",  
                     max.value.labels=TRUE, to.data.frame=FALSE,
                     trim.factor.names=FALSE, 
                     reencode=NA, use.missings=to.data.frame)


# Read the newly-read data from GSS.SAV 
# into a data frame in R
GSSdata <- data.frame(GSSdata)

# Convert the data frame to a table frame through
# the dplyr function, tbl_df
GSSdata <- tbl_df(GSSdata)
# Just to be sure you have the data read correctly,
# run some descriptive statistics (mean, standard
# deviation, and count of cases) for an important
# variable we will use, HRS1:
GSSdata %>%
  summarise(mean_hours=mean(HRS1), sd_hours=sd(HRS1), n=n())
## Source: local data frame [1 x 3]
## 
##   mean_hours sd_hours     n
##        (dbl)    (dbl) (int)
## 1   24.07573 24.19891  4820

Here I am taking a look at the HRS1 variable in the GSSdata

GSSdata$HRS1

#1. A.) Here is the histogram for HRS1
GSSdata%>%ggvis(~HRS1)%>%layer_histograms()
## Guessing width = 5 # range / 21

##The Picture of the histogram

#Here I am taking the natural logarithm of HRS1 for the next Histogram.
ln_HRS1<-log(GSSdata$HRS1)
## Warning in log(GSSdata$HRS1): NaNs produced
#Here I am getting rid of the NaN in the ln_HRS1
ln_HRS1[!is.nan(ln_HRS1)]
##    [1] 2.7080502 3.4011974 4.0943446 3.6888795 2.9957323 3.4657359
##    [7] 3.9702919 4.0943446 3.6888795 3.6888795 2.4849066 3.6888795
##   [13] 3.6888795 4.3174881 3.6888795 2.9957323 3.6888795 3.6888795
##   [19] 3.6888795 3.8501476 3.6888795 3.6888795 3.4011974 3.6888795
##   [25] 3.6888795 4.0073332 4.0943446 4.0073332 3.6888795 3.9120230
##   [31] 3.5835189 3.8066625 3.6888795 3.5835189 4.5951199 4.0943446
##   [37] 3.6888795 3.6888795 3.6888795 3.5553481 3.6888795 3.9120230
##   [43] 3.2958369 4.0943446 3.9120230 3.0445224 3.6888795 2.0794415
##   [49] 3.6888795 4.0073332 3.6888795 3.9120230 3.6888795 3.6888795
##   [55] 4.0943446 3.6888795 1.9459101 2.7080502 3.9120230 3.5553481
##   [61] 3.2188758 4.3820266 3.8066625 3.4011974 3.8501476 3.6888795
##   [67] 3.5553481 3.6888795 2.9957323 3.8286414 3.6375862 3.6888795
##   [73] 3.8712010 4.0943446 3.6888795 3.4965076 3.8066625 3.8712010
##   [79] 3.6888795 3.4657359 3.8286414 3.6888795 3.6888795 4.4543473
##   [85] 3.6888795 3.6888795 3.2188758 1.6094379 2.7080502 3.6888795
##   [91] 3.6888795 3.6888795 3.4011974 4.0943446 3.6888795 3.1780538
##   [97] 3.7135721 3.6888795 3.8066625 3.6888795 4.0943446 3.6888795
##  [103] 3.6888795 2.9957323 3.7612001 2.9957323 4.0430513 2.7725887
##  [109] 3.6888795 3.9120230 3.6888795 4.0943446 3.8066625 3.6888795
##  [115] 3.6888795 3.6888795 3.3322045 3.8066625 3.9120230 4.0943446
##  [121] 3.6888795 2.0794415 3.4011974 3.8066625 3.4011974 3.6888795
##  [127] 3.4011974 4.4886364 3.6888795 4.0253517 3.6888795 3.5835189
##  [133] 3.8066625 2.9957323 3.6888795 3.1780538 2.8903718 4.0073332
##  [139] 3.6888795 3.8066625 3.4657359 3.4011974 3.5553481 3.9120230
##  [145] 4.1743873 3.9120230 4.5951199 4.0073332 3.4011974 3.6888795
##  [151] 3.6888795 3.1780538 3.6888795 4.0943446 3.6888795 3.6888795
##  [157] 3.6375862 3.8286414 3.5553481 4.0943446 3.6888795 3.6888795
##  [163] 3.8066625 3.8918203 4.0073332 3.6888795 4.0943446 2.1972246
##  [169] 4.2484952 4.4886364 3.6888795 3.6888795 2.7725887 3.6888795
##  [175] 3.9120230 3.7376696 4.2484952 3.8066625 2.3025851 3.6888795
##  [181] 3.4657359 3.8286414 3.7841896 3.6888795 4.0943446 3.6888795
##  [187] 3.6635616 3.6888795 3.8066625 3.6888795 3.2188758 2.1972246
##  [193] 3.5553481 4.0073332 3.6888795 3.6888795 3.6888795 4.0943446
##  [199] 4.5951199 3.6375862 4.4426513 3.9120230 2.0794415 3.6888795
##  [205] 4.2766661 3.8712010 3.9120230 3.2188758 2.9957323 3.6888795
##  [211] 3.4011974 4.0073332 2.1972246 3.5263605 3.6888795 3.4657359
##  [217] 3.9120230 3.7135721 2.9957323 3.6109179 4.0943446 3.6888795
##  [223] 4.1588831 3.9120230 4.0943446 3.6888795 3.8066625 1.6094379
##  [229] 2.9957323 3.7841896 3.8066625 2.1972246 3.4011974 3.6888795
##  [235] 4.5951199 3.6375862 3.6888795 3.6888795 3.4657359 4.0943446
##  [241] 3.8066625 3.7376696 3.2188758 3.9120230 4.0073332 3.8066625
##  [247] 3.6888795 3.9120230 2.9957323 3.9120230 2.4849066 3.4657359
##  [253] 2.7725887 2.1972246 3.2958369 3.6888795 3.6888795 3.4965076
##  [259] 4.0943446 4.2484952 3.6888795 3.9120230 3.8066625 4.1743873
##  [265] 3.9120230 4.3820266 4.0073332 3.6888795 3.6888795 3.8066625
##  [271] 3.9120230 3.6888795 3.5553481 3.6888795 3.6888795 3.6888795
##  [277] 3.6888795 3.6375862 2.4849066 3.6888795 3.6888795 2.7080502
##  [283] 4.0073332 3.7135721 3.8066625 3.6888795 4.0943446 3.6888795
##  [289] 4.0073332 3.6888795 3.9120230 2.7725887 3.6375862 2.9957323
##  [295] 2.4849066 3.7376696 2.8903718 3.8066625 3.5553481 3.6888795
##  [301] 3.4011974 3.6888795 3.6888795 3.8712010 3.6888795 4.0943446
##  [307] 4.3820266 3.8712010 4.1271344 3.8712010 3.6888795 4.0943446
##  [313] 4.5951199 3.6888795 3.8066625 2.1972246 4.0943446 3.6888795
##  [319] 3.1780538 3.8066625 3.8066625 3.4011974 2.0794415 2.7725887
##  [325] 3.6888795 3.4011974 2.9957323 3.6888795 2.9957323 4.0073332
##  [331] 4.2484952 3.9120230 3.5553481 4.0943446 3.6888795 2.9957323
##  [337] 3.1780538 3.6888795 3.5553481 3.6888795 3.5553481 3.6888795
##  [343] 3.6888795 3.4657359 3.4011974 3.8066625 3.4011974 3.6888795
##  [349] 3.6888795 3.8712010 4.4886364 3.6888795 3.5835189 3.6888795
##  [355] 3.2188758 3.6888795 2.1972246 3.9120230 3.6888795 4.0430513
##  [361] 4.2484952 4.3820266 3.9120230 3.6888795 3.6888795 3.7841896
##  [367] 3.8501476 3.6109179 3.9120230 4.0775374 4.3174881 3.9120230
##  [373] 3.7376696 2.1972246 3.6888795 4.0073332 2.9957323 3.6888795
##  [379] 4.0943446 3.5553481 3.8286414 3.1780538 3.8286414 3.6888795
##  [385] 3.1780538 3.6888795 3.5553481 3.4011974 2.3025851 3.8066625
##  [391] 1.3862944 3.0910425 3.4011974 4.0943446 3.2188758 3.7376696
##  [397] 3.6888795 3.6888795 3.9120230 3.9120230 3.7612001 4.2484952
##  [403] 3.5835189 2.1972246 3.6375862 4.0943446 3.6888795 2.7725887
##  [409] 3.7376696 3.8066625 3.7376696 3.6888795 3.1780538 4.3820266
##  [415] 2.8903718 3.6888795 2.9444390 3.8066625 2.1972246 3.8712010
##  [421] 3.6888795 3.9120230 3.7376696 3.9120230 2.9957323 3.6888795
##  [427] 3.4657359 3.9120230 4.0943446 3.6888795 4.4886364 3.7376696
##  [433] 3.9120230 4.0943446 4.0943446 3.8066625 2.1972246 2.7725887
##  [439] 3.6888795 3.5553481 3.8712010 3.9512437 3.7135721 3.6888795
##  [445] 3.5263605 3.6888795 3.4011974 3.6888795 1.3862944 3.8066625
##  [451] 2.1972246 3.6888795 2.0794415 3.8066625 3.5553481 3.4011974
##  [457] 3.8286414 3.8066625 2.9957323 3.6888795 3.7376696 2.9957323
##  [463] 4.0943446 3.5835189 3.4657359 3.6888795 2.0794415 4.1743873
##  [469] 3.5553481 3.5835189 3.5835189 4.3820266 3.6888795 3.4657359
##  [475] 3.6888795 4.0943446 4.2484952 4.2484952 3.8712010 2.9957323
##  [481] 3.4011974 3.6109179 2.1972246 3.4011974 3.7376696 3.6888795
##  [487] 3.6635616 4.0943446 3.6109179 3.9120230 3.8712010 4.3820266
##  [493] 3.6888795 3.6888795 3.9120230 2.1972246 3.6375862 3.6888795
##  [499] 2.9957323 2.9957323 3.6888795 3.6888795 4.0943446 3.7841896
##  [505] 2.9957323 3.9120230 3.9120230 4.0073332 3.6888795 3.6888795
##  [511] 3.9120230 4.0943446 3.5553481 3.8286414 3.6888795 2.7725887
##  [517] 2.1972246 3.7612001 3.6888795 2.9957323 3.9120230 3.5553481
##  [523] 3.6888795 3.6888795 3.6888795 2.1972246 4.2484952 3.6888795
##  [529] 3.6888795 3.9512437 3.6888795 3.4011974 3.6888795 3.8712010
##  [535] 3.4011974 3.6888795 3.6888795 2.9957323 4.0430513 2.7725887
##  [541] 2.1972246 3.4011974 3.6888795 2.9957323 3.6888795 3.6888795
##  [547] 3.6888795 3.6635616 3.6888795 3.6888795 3.5263605 3.6888795
##  [553] 4.0073332 3.6888795 2.3025851 3.6888795 3.9120230 3.8066625
##  [559] 4.0943446 3.6888795 3.8501476 3.8918203 3.6888795 4.0943446
##  [565] 4.5951199 3.8918203 2.1972246 3.6888795 3.7841896 3.4011974
##  [571] 3.8712010 3.6888795 3.9512437 2.7080502 3.5553481 3.6888795
##  [577] 2.1972246 3.8066625 3.6375862 3.4657359 2.3025851 4.0943446
##  [583] 3.9120230 3.7612001 3.6888795 3.6888795 2.4849066 3.6888795
##  [589] 3.7135721 4.0073332 4.0943446 3.0445224 3.6888795 1.3862944
##  [595] 3.9120230 3.9120230 3.6888795 3.6888795 3.4657359 3.7612001
##  [601] 3.5553481 1.3862944 2.7080502 3.9120230 4.0073332 2.0794415
##  [607] 3.6635616 3.6109179 3.6888795 3.6888795 2.9957323 4.0943446
##  [613] 1.6094379 3.6888795 2.9957323 4.0943446 4.2195077 3.6888795
##  [619] 3.8066625 3.8066625 3.8066625 3.6888795 3.6888795 4.2484952
##  [625] 4.0943446 3.9120230 3.9120230 3.6888795 3.9120230 3.5835189
##  [631] 3.7376696 3.5835189 2.9957323 3.2188758 2.1972246 2.4849066
##  [637] 4.0073332 3.6888795 4.0775374 3.6888795 3.6888795 3.4657359
##  [643] 3.9120230 4.1743873 3.6888795 3.9512437 3.9120230 3.6375862
##  [649] 2.1972246 3.8066625 3.5553481 3.4011974 3.6888795 4.0943446
##  [655] 3.6888795 2.1972246 3.6888795 2.1972246 2.1972246 1.3862944
##  [661] 3.6888795 3.6888795 2.9957323 4.0073332 3.8066625 3.0910425
##  [667] 2.7080502 3.9512437 4.0943446 2.0794415 2.7725887 3.1780538
##  [673] 3.6888795 3.6888795 2.7725887 2.1972246 3.8066625 3.9120230
##  [679] 3.9120230 4.2484952 3.5553481 3.6888795 2.1972246 3.9512437
##  [685] 3.2188758 2.9957323 2.8332133 3.5553481 3.6888795 3.1780538
##  [691] 3.6888795 2.9957323 3.4011974 3.6888795 4.2195077 2.9957323
##  [697] 3.7376696 2.9957323 3.4657359 3.8712010 4.0943446 3.2188758
##  [703] 3.4657359 3.6888795 4.1743873 3.4657359 3.6888795 4.1743873
##  [709] 3.6888795 3.6888795 3.4657359 4.0253517 3.8712010 3.6888795
##  [715] 3.6888795 3.6888795 3.6888795 3.6888795 3.6109179 3.7612001
##  [721] 3.0445224 3.4657359 3.6888795 3.6109179 2.7080502 4.5951199
##  [727] 4.5951199 4.5951199 3.6888795 3.9120230 3.9120230 3.6888795
##  [733] 2.7080502 3.9120230 3.9702919 3.6888795 4.0073332 3.6888795
##  [739] 3.4657359 3.6888795 2.9957323 3.7841896 4.4886364 3.9702919
##  [745] 3.7841896 2.1972246 3.6888795 3.4657359 2.1972246 4.0073332
##  [751] 3.9120230 3.5553481 2.1972246 3.2188758 3.5553481 3.4965076
##  [757] 4.2484952 4.0604430 3.5835189 3.9120230 3.6888795 3.6888795
##  [763] 3.6109179 2.1972246 3.6888795 2.9957323 3.8066625 4.2195077
##  [769] 3.6888795 3.6888795 4.0943446 3.6375862 3.5835189 3.2188758
##  [775] 3.6888795 3.4011974 3.6888795 3.9120230 3.9120230 3.6888795
##  [781] 2.1972246 4.0943446 3.9120230 2.9957323 3.4011974 3.6888795
##  [787] 3.6888795 4.1431347 3.8712010 3.6888795 4.2484952 4.0943446
##  [793] 3.6375862 3.6109179 4.0943446 3.8712010 3.9120230 3.6888795
##  [799] 4.0073332 3.6888795 3.6888795 4.0073332 3.6888795 3.6888795
##  [805] 3.9120230 3.6888795 3.7376696 3.7841896 3.6888795 4.2484952
##  [811] 3.7841896 3.6888795 3.9120230 4.1743873 2.9444390 3.6888795
##  [817] 3.9120230 3.9120230 3.4011974 4.0943446 3.6888795 3.6888795
##  [823] 3.9120230 4.0604430 3.7376696 3.6888795 3.8286414 2.3025851
##  [829] 3.6888795 4.0943446 2.7080502 4.1588831 3.6375862 3.7841896
##  [835] 3.6888795 3.6888795 0.0000000 3.6888795 3.6109179 3.6888795
##  [841] 3.4011974 3.5553481 4.0073332 4.0943446 4.0073332 3.6888795
##  [847] 3.8066625 4.0073332 3.6888795 4.1743873 3.5553481 3.8286414
##  [853] 3.6888795 3.1780538 3.6888795 3.8501476 4.0943446 3.6888795
##  [859] 3.6888795 4.1743873 2.9957323 3.5835189 3.9120230 3.7841896
##  [865] 3.8066625 4.1271344 3.9702919 4.0604430 2.8903718 3.7612001
##  [871] 3.4011974 3.8066625 2.1972246 4.0073332 3.8066625 3.6888795
##  [877] 3.8712010 3.6888795 4.3820266 3.6888795 3.6888795 3.9512437
##  [883] 3.6375862 3.6888795 3.8066625 3.8286414 3.6888795 3.6888795
##  [889] 3.7841896 4.1743873 3.6888795 2.1972246 3.6888795 3.6888795
##  [895] 3.6888795 3.6888795 3.6888795 3.6888795 4.2484952 2.7080502
##  [901] 3.6888795 4.0943446 2.1972246 3.8712010 3.2188758 3.6888795
##  [907] 3.7376696 3.8066625 3.6888795 4.3438054 4.3820266 3.8501476
##  [913] 3.8286414 3.6888795 4.0073332 3.6375862 2.9957323 3.6888795
##  [919] 3.6888795 3.6888795 4.3820266 3.6375862 3.6888795 3.6888795
##  [925] 3.6888795 3.6888795 3.6888795 4.0943446 2.9957323 1.3862944
##  [931] 3.6888795 3.6888795 3.6888795 3.1354942 3.6888795 4.5951199
##  [937] 3.6888795 3.9120230 4.3820266 3.4011974 3.4011974 3.4011974
##  [943] 4.0943446 3.4011974 4.2484952 4.3820266 3.6375862 3.6888795
##  [949] 4.5951199 3.6888795 3.6888795 3.6888795 3.8066625 4.1588831
##  [955] 3.8066625 3.6888795 3.6888795 3.6888795 4.5951199 3.6888795
##  [961] 3.5553481 3.5553481 3.8712010 3.6888795 3.4657359 3.6888795
##  [967] 3.7612001 3.6888795 3.6888795 3.4011974 3.4011974 3.1780538
##  [973] 3.6888795 3.6375862 3.6888795 2.9957323 3.8066625 0.0000000
##  [979] 4.1743873 2.9957323 3.3322045 3.6888795 3.7135721 3.6888795
##  [985] 2.1972246 3.6888795 3.3672958 3.6888795 3.8066625 4.0943446
##  [991] 3.5553481 2.7725887 4.0943446 4.0604430 2.9957323 2.9444390
##  [997] 3.6888795 3.6888795 3.6888795 2.8332133 3.5263605 4.0943446
## [1003] 3.6888795 3.4011974 3.9120230 3.9120230 3.6888795 4.4886364
## [1009] 4.2766661 3.6888795 3.8712010 3.6888795 3.6888795 3.4011974
## [1015] 2.4849066 3.7612001 4.0943446 3.8712010 2.7725887 3.3322045
## [1021] 3.5835189 3.6888795 3.9120230 3.5835189 4.4886364 4.0073332
## [1027] 4.0943446 4.0073332 3.6888795 4.2484952 2.1972246 4.4886364
## [1033] 3.6888795 4.2484952 3.1780538 3.6888795 3.8712010 3.4657359
## [1039] 3.6888795 3.6888795 4.3820266 4.1743873 3.4011974 3.8066625
## [1045] 2.1972246 4.2484952 3.5263605 3.7841896 3.4657359 3.6109179
## [1051] 3.4339872 3.6888795 3.4339872 4.5951199 4.3820266 3.6888795
## [1057] 4.0943446 3.7841896 3.6888795 3.4011974 3.6888795 4.2484952
## [1063] 3.2188758 3.6888795 3.0910425 4.0943446 4.0943446 2.1972246
## [1069] 4.2766661 4.0073332 0.6931472 3.6888795 3.5553481 4.0943446
## [1075] 3.8066625 4.0253517 3.8712010 3.6375862 3.6888795 3.9120230
## [1081] 3.6888795 3.2580965 3.6888795 2.3978953 3.6888795 4.2484952
## [1087] 3.2188758 3.2188758 4.0943446 2.3025851 2.9957323 3.9120230
## [1093] 3.9120230 3.6888795 2.0794415 3.9120230 3.6888795 3.4657359
## [1099] 2.6390573 3.9120230 3.4011974 2.9957323 3.8286414 3.6888795
## [1105] 3.8066625 4.0943446 3.6888795 3.8066625 3.6888795 3.9702919
## [1111] 3.1780538 3.6888795 2.7080502 3.6375862 3.8712010 4.0943446
## [1117] 3.8712010 3.7376696 3.8712010 2.7725887 2.0794415 3.6888795
## [1123] 3.6888795 2.1972246 3.6375862 2.1972246 3.6888795 4.3820266
## [1129] 3.4011974 2.9957323 4.0943446 4.0943446 3.6888795 3.8712010
## [1135] 3.6888795 3.9120230 3.5263605 3.6888795 3.6888795 4.0943446
## [1141] 3.6888795 3.6888795 3.7376696 2.0794415 3.4011974 2.7080502
## [1147] 3.5835189 3.6888795 3.6888795 3.6888795 3.6888795 3.8066625
## [1153] 3.1780538 3.8286414 2.9957323 3.9120230 4.0073332 4.0253517
## [1159] 2.1972246 4.1743873 3.7612001 3.5835189 4.0943446 3.8066625
## [1165] 2.8903718 3.6888795 4.1271344 3.6888795 3.8066625 4.0943446
## [1171] 3.6888795 4.0943446 3.4011974 3.2188758 3.6888795 3.6888795
## [1177] 3.6888795 3.6888795 3.5553481 3.6888795 3.6888795 3.5553481
## [1183] 3.6888795 3.6888795 3.4011974 3.4657359 3.6888795 4.2046926
## [1189] 3.4965076 2.9957323 2.9957323 4.0943446 2.9957323 3.8066625
## [1195] 2.1972246 3.5553481 4.0073332 3.2188758 3.5553481 2.9957323
## [1201] 3.9120230 3.6888795 3.8066625 3.6888795 4.0943446 3.6888795
## [1207] 2.7725887 3.9120230 3.9120230 3.2188758 3.6888795 3.6888795
## [1213] 3.6888795 4.2195077 3.4011974 3.4011974 4.0943446 4.0943446
## [1219] 3.6375862 3.5553481 3.8712010 3.6109179 3.4011974 2.1972246
## [1225] 3.1780538 3.6888795 3.8066625 3.9120230 3.8066625 3.5553481
## [1231] 4.0943446 3.9120230 3.6888795 3.6888795 2.3025851 3.7376696
## [1237] 3.8066625 3.6888795 3.8066625 3.8066625 0.0000000 3.7135721
## [1243] 3.6888795 3.8066625 2.9957323 3.8712010 3.6109179 3.4657359
## [1249] 3.8066625 3.8066625 2.4849066 3.8501476 3.6888795 3.9120230
## [1255] 3.6888795 3.1780538 3.9512437 3.9120230 2.9957323 2.1972246
## [1261] 3.6109179 3.5553481 3.6888795 4.0943446 3.4657359 3.6888795
## [1267] 3.5553481 3.5835189 3.6888795 4.0943446 2.1972246 3.5263605
## [1273] 3.4011974 3.6888795 2.0794415 3.6888795 3.8066625 3.6888795
## [1279] 3.8286414 3.8501476 3.6888795 4.0943446 3.2188758 3.8712010
## [1285] 3.6888795 3.5835189 3.6888795 3.6888795 3.8286414 4.5951199
## [1291] 4.0943446 3.9120230 3.6888795 3.6888795 4.3820266 3.6888795
## [1297] 3.4339872 3.2188758 3.2958369 3.4011974 3.6888795 3.6888795
## [1303] 3.2188758 2.1972246 4.0253517 2.9957323 4.3820266 3.6888795
## [1309] 4.4886364 3.6888795 3.4657359 3.6635616 0.0000000 3.6888795
## [1315] 2.9957323 3.6888795 4.2484952 3.9120230 2.1972246 3.9120230
## [1321] 3.2188758 2.7725887 3.2188758 3.8286414 4.3174881 3.5553481
## [1327] 2.4849066 3.6888795 3.5553481 2.1972246 3.5553481 3.9512437
## [1333] 3.8712010 2.1972246 3.4657359 3.6888795 4.1743873 3.6888795
## [1339] 3.6888795 4.0943446 3.6888795 3.6888795 3.6888795 3.6888795
## [1345] 4.5951199 3.8286414 3.2188758 3.9120230 4.5951199 4.1743873
## [1351] 3.6888795 2.7080502 3.8712010 3.6375862 3.6888795 3.6888795
## [1357] 4.4886364 3.6888795 4.3438054 3.4965076 4.0073332 4.3820266
## [1363] 4.0253517 3.6375862 4.3820266 3.6888795 4.4886364 3.4011974
## [1369] 3.5553481 3.5553481 3.5553481 3.6888795 3.6888795 2.4849066
## [1375] 3.9120230 2.3025851 4.3820266 3.6888795 4.1743873 3.7841896
## [1381] 3.9120230 3.6888795 3.7135721 3.5553481 3.9120230 2.3025851
## [1387] 3.9120230 3.7376696 3.9120230 3.6888795 2.8903718 3.5835189
## [1393] 3.7841896 3.9120230 3.4657359 3.6888795 3.6888795 2.1972246
## [1399] 3.4011974 4.0073332 1.9459101 3.6888795 4.0073332 2.9957323
## [1405] 3.4011974 3.6888795 3.6888795 3.9512437 3.7376696 3.7376696
## [1411] 3.7376696 2.1972246 4.2484952 4.1431347 4.1271344 3.6888795
## [1417] 2.1972246 3.6635616 3.6888795 2.1972246 3.2188758 3.6888795
## [1423] 2.9957323 3.8066625 3.4011974 4.0943446 3.9120230 3.6888795
## [1429] 3.8066625 4.0943446 2.1972246 3.6109179 3.9120230 3.7135721
## [1435] 3.6888795 3.6375862 3.9512437 4.1743873 3.6888795 3.6888795
## [1441] 4.0943446 3.6888795 1.3862944 3.6888795 3.8066625 3.6888795
## [1447] 4.0604430 3.8712010 3.4011974 4.4886364 2.9957323 3.6888795
## [1453] 4.0943446 3.9120230 3.6888795 3.6888795 4.1743873 3.6888795
## [1459] 4.0073332 3.7841896 4.0943446 3.3672958 4.0943446 3.8066625
## [1465] 3.6888795 4.2766661 4.0943446 3.6888795 3.7841896 3.6888795
## [1471] 3.6109179 3.9120230 3.8286414 3.9120230 3.2580965 4.0073332
## [1477] 3.4657359 3.8066625 2.3025851 3.6888795 3.9120230 3.2580965
## [1483] 3.6888795 3.9512437 3.5835189 3.5553481 3.6888795 3.4011974
## [1489] 4.0943446 4.3820266 4.0943446 3.4657359 3.6888795 3.6888795
## [1495] 4.0943446 3.6888795 3.6888795 3.2188758 4.0943446 3.8066625
## [1501] 3.6888795 3.6888795 3.1354942 4.0943446 3.6888795 2.1972246
## [1507] 3.9120230 2.7080502 3.9120230 3.6888795 3.5553481 3.6888795
## [1513] 3.9120230 3.4339872 2.7080502 3.6888795 3.4657359 3.6888795
## [1519] 3.9120230 3.6888795 3.6888795 3.6888795 3.5835189 3.6888795
## [1525] 3.7135721 3.9512437 4.0073332 4.0943446 3.7612001 3.6109179
## [1531] 3.8066625 3.6888795 3.8286414 3.6888795 4.0253517 3.7841896
## [1537] 3.4657359 3.9120230 3.6888795 3.9120230 3.9120230 3.4657359
## [1543] 4.1743873 3.5553481 3.7376696 3.6888795 4.2195077 3.6888795
## [1549] 3.6888795 3.9120230 2.1972246 4.1431347 4.0943446 3.6888795
## [1555] 4.0430513 3.6888795 3.6888795 3.6888795 3.8066625 3.8286414
## [1561] 3.4011974 3.6888795 4.2766661 3.6888795 3.4011974 2.3025851
## [1567] 3.8066625 3.6888795 3.6888795 3.9120230 4.5849675 4.0073332
## [1573] 3.6888795 4.0430513 3.6888795 3.6888795 3.6888795 3.8712010
## [1579] 3.6888795 3.8712010 3.9120230 3.6888795 3.6888795 2.9957323
## [1585] 3.8066625 3.6109179 3.7376696 3.9120230 4.0073332 3.6888795
## [1591] 3.8066625 4.0604430 4.2046926 3.6888795 3.7376696 3.6109179
## [1597] 3.6888795 3.6888795 2.7080502 4.0073332 3.6888795 3.6888795
## [1603] 4.1743873 3.6109179 4.0073332 3.9120230 4.3174881 3.9120230
## [1609] 3.6888795 3.6375862 3.2958369 3.6888795 4.5951199 3.6888795
## [1615] 3.5835189 3.6888795 3.4011974 4.1743873 3.6888795 3.5835189
## [1621] 3.6888795 3.6888795 3.6888795 3.9512437 2.3025851 3.6888795
## [1627] 3.8066625 3.6888795 4.0943446 3.8066625 3.9120230 4.2195077
## [1633] 4.5951199 3.6888795 4.0943446 3.6888795 4.2484952 3.9120230
## [1639] 3.8712010 3.9120230 3.4011974 3.4657359 3.8712010 3.6888795
## [1645] 3.5553481 2.7080502 4.0943446 3.6888795 3.4657359 4.4886364
## [1651] 3.6888795 3.9120230 3.4011974 3.9120230 3.8066625 3.8712010
## [1657] 2.9957323 4.0943446 3.6888795 3.6888795 3.2580965 3.2188758
## [1663] 3.6888795 3.8066625 3.6888795 3.6888795 4.0943446 3.6888795
## [1669] 3.6888795 4.0253517 2.3025851 4.0943446 3.6888795 3.6888795
## [1675] 3.4657359 3.7135721 3.6888795 3.4011974 3.4011974 2.4849066
## [1681] 3.6888795 4.4543473 3.9120230 3.7612001 3.5835189 3.5553481
## [1687] 4.0073332 3.9512437 3.6888795 1.6094379 3.6888795 4.0943446
## [1693] 3.9120230 4.3820266 2.1972246 3.6888795 3.5835189 3.4657359
## [1699] 3.7841896 3.5835189 3.4011974 3.7841896 3.5835189 3.6888795
## [1705] 4.2484952 3.6888795 3.6888795 3.6888795 1.6094379 3.6888795
## [1711] 4.0943446 4.4886364 3.2188758 3.6888795 3.8066625 3.6888795
## [1717] 4.0073332 4.0073332 3.2188758 3.4011974 3.6888795 3.6109179
## [1723] 4.0073332 3.6888795 3.9120230 3.5553481 3.8066625 3.6888795
## [1729] 3.6888795 3.7841896 3.8712010 2.6390573 1.7917595 3.8066625
## [1735] 3.4011974 3.6888795 3.6888795 2.1972246 3.4011974 3.6888795
## [1741] 3.6888795 2.0794415 1.7917595 2.7080502 3.9120230 2.9957323
## [1747] 3.5553481 3.6888795 3.6888795 4.1271344 3.9120230 3.9120230
## [1753] 4.0073332 3.7376696 3.6888795 3.6888795 3.8066625 3.8286414
## [1759] 3.2580965 3.6888795 3.0910425 3.2188758 4.0073332 3.6888795
## [1765] 3.4657359 4.0073332 3.6888795 4.2484952 3.6888795 2.9957323
## [1771] 3.6888795 3.6888795 3.9120230 2.1972246 3.9120230 3.7841896
## [1777] 3.6888795 3.7376696 3.9120230 3.0910425 3.5835189 2.1972246
## [1783] 4.4886364 3.5553481 3.4657359 3.6888795 2.5649494 4.0943446
## [1789] 4.0073332 3.9120230 4.0073332 2.7080502 3.5553481 3.6888795
## [1795] 3.4657359 3.6888795 3.6888795 2.9957323 4.0943446 3.6888795
## [1801] 3.8286414 3.0910425 3.6888795 3.6888795 3.6888795 3.6888795
## [1807] 3.6109179 3.6888795 3.6888795 3.9120230 3.6888795 3.8712010
## [1813] 3.8066625 4.5951199 3.6888795 3.5553481 3.6888795 3.9120230
## [1819] 3.6888795 2.1972246 4.4426513 3.5553481 3.6888795 3.6888795
## [1825] 3.6888795 3.6888795 2.7080502 3.8712010 3.9120230 4.0073332
## [1831] 3.4657359 3.9120230 3.9120230 3.9120230 2.8903718 4.3040651
## [1837] 3.2188758 4.0073332 3.6888795 4.3820266 2.0794415 3.1780538
## [1843] 4.0943446 3.5835189 3.5835189 3.6888795 4.0604430 3.6888795
## [1849] 3.6888795 3.6888795 3.4657359 3.7841896 3.4965076 2.9957323
## [1855] 3.6888795 3.4657359 3.6888795 3.4011974 3.6888795 2.5649494
## [1861] 4.0073332 3.5553481 4.0943446 3.6888795 0.0000000 3.2580965
## [1867] 3.6888795 3.2188758 3.4657359 3.8712010 3.6888795 3.5553481
## [1873] 3.3322045 4.0943446 3.6888795 3.6888795 3.6888795 4.0073332
## [1879] 3.6888795 2.9957323 3.6888795 2.7080502 2.1972246 3.9120230
## [1885] 3.6888795 3.6888795 4.0943446 3.8712010 3.9120230 2.1972246
## [1891] 4.4886364 3.2188758 3.6888795 3.9120230 3.6888795 4.0943446
## [1897] 3.9512437 4.0943446 3.6888795 2.9957323 2.9957323 3.6888795
## [1903] 3.8712010 3.9318256 3.4011974 2.1972246 3.6109179 3.6888795
## [1909] 3.5263605 4.5951199 3.6375862 4.0943446 3.1780538 4.4886364
## [1915] 3.8712010 3.5553481 3.6888795 2.1972246 3.6888795 3.4657359
## [1921] 2.8903718 2.7725887 4.2484952 3.8712010 3.6888795 3.6888795
## [1927] 2.9957323 2.6390573 3.9120230 3.6888795 3.6888795 3.6888795
## [1933] 3.6888795 1.6094379 3.9120230 3.6888795 4.1743873 3.8712010
## [1939] 3.6888795 3.2188758 3.6888795 3.6888795 3.7612001 3.6888795
## [1945] 3.7612001 3.8066625 3.8066625 3.6109179 4.0943446 3.6888795
## [1951] 2.7080502 3.9120230 2.6390573 4.0073332 4.2484952 4.0073332
## [1957] 0.6931472 3.6888795 3.6888795 3.9120230 2.1972246 2.9957323
## [1963] 3.6888795 4.0943446 3.9120230 3.9120230 3.6888795 3.5553481
## [1969] 2.7080502 3.5835189 3.2188758 4.0943446 3.6888795 3.6888795
## [1975] 3.7376696 4.0943446 3.8712010 3.6888795 3.8066625 4.0943446
## [1981] 3.9120230 3.9120230 3.4011974 2.5649494 3.7612001 3.6888795
## [1987] 4.0253517 3.7135721 3.6888795 3.6888795 2.1972246 4.2484952
## [1993] 3.6888795 3.9120230 2.1972246 3.3322045 3.6888795 4.0943446
## [1999] 2.9957323 3.5835189 3.6888795 3.6888795 3.8066625 3.6888795
## [2005] 2.7080502 3.6888795 3.6888795 2.9957323 3.6888795 3.6888795
## [2011] 3.6888795 2.9957323 4.0943446 3.9120230 1.6094379 2.7725887
## [2017] 4.0943446 3.8066625 3.6888795 3.6375862 4.2484952 4.1743873
## [2023] 3.8066625 3.6888795 3.6888795 3.9120230 3.6888795 2.4849066
## [2029] 3.8066625 3.4657359 4.0943446 4.0943446 3.6888795 2.1972246
## [2035] 3.4011974 4.0073332 3.9120230 3.8066625 4.0943446 4.4886364
## [2041] 3.9120230 3.8712010 4.2484952 3.6888795 3.6888795 3.6888795
## [2047] 3.8286414 4.0430513 3.2188758 3.6109179 4.0073332 3.9120230
## [2053] 1.9459101 3.6888795 2.9957323 3.6888795 3.9120230 2.4849066
## [2059] 4.2484952 3.9120230 3.4657359 3.9120230 3.5835189 3.7841896
## [2065] 3.6888795 2.1972246 2.1972246 3.6888795 2.7725887 3.4657359
## [2071] 3.6375862 3.4657359 3.6888795 3.1780538 4.1743873 3.8066625
## [2077] 2.9957323 4.0943446 3.6888795 4.4426513 4.0943446 3.8066625
## [2083] 2.9957323 3.5835189 3.6888795 1.3862944 4.0943446 2.9957323
## [2089] 4.0943446 3.9120230 3.9120230 3.4657359 2.1972246 3.8066625
## [2095] 2.9957323 3.6888795 3.8286414 3.6888795 2.1972246 3.9120230
## [2101] 3.6888795 3.6888795 4.5951199 3.6888795 3.6888795 3.6888795
## [2107] 4.0253517 3.6888795 3.6888795 3.8712010 2.9957323 3.8066625
## [2113] 4.0073332 3.8066625 3.9512437 3.8066625 3.6888795 3.6375862
## [2119] 3.4657359 3.9889840 3.6888795 4.0604430 3.6888795 4.0604430
## [2125] 3.6888795 3.6888795 3.6888795 3.9512437 3.9120230 4.3820266
## [2131] 3.4011974 3.8286414 3.7376696 2.0794415 2.0794415 2.7725887
## [2137] 4.0943446 3.6888795 3.8501476 3.4657359 4.5951199 4.0253517
## [2143] 3.9120230 3.6888795 3.4011974 3.6888795 3.6888795 3.7841896
## [2149] 3.8066625 3.6888795 3.6888795 3.5553481 3.6888795 3.6888795
## [2155] 3.8066625 3.9120230 2.4849066 1.6094379 3.8066625 3.4011974
## [2161] 4.0073332 3.8066625 3.6888795 2.9957323 3.0445224 3.9120230
## [2167] 3.6888795 3.9120230 3.4011974 3.8066625 3.8286414 3.6375862
## [2173] 3.6888795 3.9120230 1.7917595 3.9120230 4.0943446 3.8066625
## [2179] 2.9957323 3.9512437 3.9120230 3.6888795 2.1972246 3.4011974
## [2185] 3.4657359 3.9120230 3.4965076 4.0073332 3.1780538 1.7917595
## [2191] 4.0943446 3.6888795 3.6888795 3.6109179 4.2766661 2.4849066
## [2197] 3.8066625 3.8066625 4.5951199 3.8066625 4.1271344 3.6888795
## [2203] 3.6888795 3.6888795 3.4011974 4.2484952 2.9957323 3.6888795
## [2209] 2.5649494 3.4657359 3.8066625 3.6888795 3.8712010 3.6888795
## [2215] 3.6888795 2.1972246 3.6888795 3.1780538 3.4011974 2.9957323
## [2221] 3.9120230 3.8066625 3.6888795 4.0943446 2.9957323 3.9120230
## [2227] 4.2484952 3.8712010 3.6888795 3.6888795 3.6888795 4.0253517
## [2233] 3.9120230 3.1780538 2.3025851 3.6375862 4.0073332 3.2188758
## [2239] 2.7725887 3.6888795 3.0445224 3.6109179 4.5951199 3.6888795
## [2245] 3.6888795 3.6888795 4.0073332 3.8066625 3.4011974 3.7841896
## [2251] 3.6109179 3.7612001 0.0000000 3.6888795 3.7376696 3.2958369
## [2257] 2.9957323 4.3820266 3.6888795 3.6888795 3.6888795 3.6888795
## [2263] 2.4849066 2.6390573 3.7135721 3.6888795 3.9120230 2.8332133
## [2269] 2.0794415 3.9120230 3.6888795 3.5553481 3.6888795 4.0073332
## [2275] 4.2766661 3.9120230 2.3025851 2.0794415 3.4011974 4.0073332
## [2281] 4.0943446 4.5951199 4.2484952 4.0943446 3.9120230 2.9957323
## [2287] 3.6635616 4.1896547 2.9957323 3.9120230 3.8066625 3.8066625
## [2293] 3.6635616 3.8066625 3.6888795 4.2484952 3.6888795 2.9957323
## [2299] 3.6888795 4.0073332 3.6888795 3.6888795 3.8066625 3.8066625
## [2305] 3.9702919 3.4011974 2.7725887 3.8066625 4.2484952 3.6888795
## [2311] 3.6888795 3.2188758 3.4339872 4.0943446 3.9120230 3.9318256
## [2317] 3.9120230 3.1780538 3.3322045 3.9120230 2.4849066 4.0073332
## [2323] 3.8066625 3.6888795 3.4339872 3.8712010 2.1972246 3.8066625
## [2329] 2.9957323 3.5553481 3.6888795 1.9459101 2.3978953 3.6888795
## [2335] 3.6888795 4.0943446 3.4011974 4.2484952 2.7725887 3.6888795
## [2341] 1.3862944 3.6888795 3.9120230 4.2195077 4.5849675 3.8712010
## [2347] 3.6109179 4.4067192 3.6888795 3.5553481 4.3174881 3.8066625
## [2353] 3.4657359 3.8712010 3.4657359 3.6888795 3.6888795 3.2188758
## [2359] 3.9120230 3.6888795 3.5835189 3.2188758 4.1743873 3.5553481
## [2365] 3.6888795 3.6888795 3.5835189 3.7841896 3.9120230 3.9512437
## [2371] 3.8066625 3.6888795 3.6888795 1.7917595 3.9120230 3.6888795
## [2377] 3.0910425 3.8066625 4.0943446 3.6888795 3.6888795 3.6888795
## [2383] 3.6888795 3.9120230 3.7841896 2.3025851 3.6888795 3.4657359
## [2389] 3.4011974 3.6109179 3.6888795 2.4849066 3.9120230 4.2766661
## [2395] 3.6888795 3.9120230 3.9512437 4.0604430 3.6888795 3.6888795
## [2401] 3.4011974 4.0073332 3.6888795 3.5553481 3.8066625 3.9120230
## [2407] 3.1780538 3.8712010 3.6109179 3.4657359 3.7376696 4.0943446
## [2413] 4.1743873 3.6375862 4.0073332 4.0073332 3.6888795 0.0000000
## [2419] 3.8066625 3.9120230 4.0943446 3.5553481 3.6888795 3.4011974
## [2425] 3.6888795 2.1972246 2.1972246 3.7841896 3.7612001 3.4011974
## [2431] 3.6109179 3.5553481 3.9120230 3.9120230 4.2484952 4.3820266
## [2437] 4.0943446 3.6888795 3.6888795 3.6888795 3.9120230 3.6888795
## [2443] 2.9957323 3.6888795 3.6888795 3.6888795 4.0073332 3.6888795
## [2449] 3.6888795 2.9957323 3.9512437 3.6888795 4.0943446 3.6888795
## [2455] 3.6888795 3.6888795 3.4011974 3.7376696 3.6375862 3.5553481
## [2461] 4.2484952 3.6888795 4.2195077 4.0430513 4.0073332 2.7080502
## [2467] 3.6109179 3.6375862 3.2958369 3.7841896 3.6888795 3.9120230
## [2473] 3.6888795 4.0073332 3.6888795 2.1972246 3.6888795 3.6888795
## [2479] 3.6888795 4.0943446 3.8501476 2.1972246 3.6888795 3.6888795
## [2485] 3.9120230 2.1972246 3.6888795 4.0943446 3.7376696 3.6888795
## [2491] 4.0943446 3.4657359 3.9120230 3.3322045 3.6888795 1.3862944
## [2497] 3.1780538 3.6888795 2.0794415 2.7080502 3.2188758 4.0943446
## [2503] 4.5951199 3.5835189 3.2580965 4.0943446 2.9957323 3.0445224
## [2509] 3.5835189 4.0073332 3.6888795 3.8066625 3.6888795 3.5553481
## [2515] 3.6109179 3.6888795 3.6888795 4.2484952 3.6888795 2.7080502
## [2521] 2.1972246 3.9120230 4.0943446 3.9120230 3.6888795 4.0943446
## [2527] 2.1972246 3.6888795 3.8066625 3.6888795 3.6888795 3.6375862
## [2533] 3.8066625 3.8066625 3.6888795 3.8066625 4.0073332 4.0073332
## [2539] 3.5835189 3.5835189 2.3025851 3.6888795 4.0943446 3.8066625
## [2545] 4.4886364 3.5553481 3.6888795 4.0943446 3.8066625 4.0943446
## [2551] 3.6888795 0.0000000 3.9120230 2.9957323 3.5835189 3.6888795
## [2557] 3.6888795 3.8066625 3.5553481 3.6888795 3.6888795 3.6888795
## [2563] 3.9120230 3.6375862 2.1972246 3.6888795 3.6888795 2.1972246
## [2569] 3.5835189 3.7376696 2.1972246 3.0910425 3.6375862 3.4657359
## [2575] 2.1972246 3.9120230 3.5553481 3.6888795 3.2958369 4.2484952
## [2581] 3.3322045 3.2188758 3.5553481 3.6888795 3.7841896 4.1271344
## [2587] 2.5649494 3.5835189 4.1743873 2.3025851 4.1743873 2.1972246
## [2593] 3.5263605 3.9120230 4.2484952 3.6888795 2.3025851 4.0943446
## [2599] 3.6888795 3.9120230 4.1271344 3.4011974 3.6888795 3.4011974
## [2605] 3.5835189 4.2195077 2.1972246 3.6888795 3.2958369 3.9120230
## [2611] 3.6635616 3.2580965 3.0910425 2.4849066 4.3820266 4.0430513
## [2617] 3.5553481 4.0943446 3.0445224 3.5553481 3.4657359 3.9512437
## [2623] 2.9957323 2.7080502 3.6888795 3.6888795 3.6888795 3.2188758
## [2629] 3.6888795 3.4011974 3.3322045 4.0943446 3.5553481 3.7376696
## [2635] 3.8066625 3.3322045 2.9957323 4.0943446 3.6888795 3.5835189
## [2641] 4.2046926 3.5835189 3.6888795 2.9957323 3.2188758 4.0943446
## [2647] 4.2484952 3.6888795 3.7376696 3.6888795 3.9120230 3.4657359
## [2653] 2.7080502 3.4011974 3.4011974 3.6888795 1.0986123 2.9957323
## [2659] 3.8712010 3.6888795 3.8066625 3.7376696 3.6888795 3.6888795
## [2665] 3.4011974 3.9120230 3.2188758 3.2188758 3.3322045 3.6888795
## [2671] 3.5553481 3.7135721 4.0253517 3.6888795 3.9120230 3.5553481
## [2677] 3.6888795 4.0073332 3.6888795 3.8712010 3.6888795 3.6888795
## [2683] 3.6888795 3.6375862 3.9120230 3.9120230 3.7376696 2.9957323
## [2689] 3.6888795 3.4011974 1.6094379 3.8712010 3.6375862 3.6888795
## [2695] 3.9512437 2.9957323 3.7841896 3.8712010 2.3025851 3.6888795
## [2701] 3.4657359 3.9120230 3.6888795 3.8066625 3.9120230 4.1743873
## [2707] 3.8066625 2.1972246 3.1780538 3.6888795 3.8712010 3.6888795
## [2713] 4.4886364 3.4011974 3.6375862 4.2484952 3.4011974 3.6888795
## [2719] 3.4657359 3.6888795 3.6888795 3.6888795 4.0943446 1.6094379
## [2725] 3.6888795 3.6888795 3.6888795 3.6888795 3.6888795 1.9459101
## [2731] 3.9512437 3.6888795 3.4011974 3.9120230 3.4965076 3.7841896
## [2737] 4.0073332 3.2580965 4.0430513 3.6888795 3.6888795 3.6375862
## [2743] 4.0943446 3.6888795 3.5553481 3.4011974 3.6888795 3.8712010
## [2749] 3.9120230 2.9957323 2.9957323 3.6888795 3.8066625 3.9120230
## [2755] 3.6888795 3.6888795 3.6888795 4.0943446 4.2484952 3.8066625
## [2761] 2.4849066 2.7080502 3.2188758 3.9120230 3.1780538 3.6888795
## [2767] 3.6888795 4.2766661 2.1972246 2.1972246 3.6375862 3.1780538
## [2773] 4.0253517 3.8712010 4.1588831 3.6888795 3.1780538 4.3174881
## [2779] 3.9120230 3.9318256 3.6888795 3.3322045 3.9120230 4.5951199
## [2785] 2.9957323 3.6888795 3.9120230 3.6888795 0.0000000 3.8066625
## [2791] 3.6888795 3.9120230 3.6888795 3.5263605 3.4011974 4.0943446
## [2797] 3.4011974 3.6888795 3.6888795 3.8066625 3.6888795 3.6888795
## [2803] 3.6888795 4.0604430 3.8712010 4.0253517 3.9120230 4.0253517
## [2809] 1.7917595 2.7725887 3.7841896 3.6888795 3.5553481 3.6888795
## [2815] 3.5835189 3.8712010 3.9120230 4.0943446 4.0943446 3.5835189
## [2821] 3.9120230 3.6888795 3.8066625 2.1972246 3.8066625 3.3322045
## [2827] 3.6888795 3.4657359 4.5951199 4.2484952 4.0073332 3.8066625
## [2833] 4.2484952 3.6888795 3.4011974 3.6888795 2.9957323 3.6888795
## [2839] 4.0253517 3.6888795 3.5835189 4.1743873 3.5553481 4.2484952
## [2845] 3.6109179 4.2484952 2.7080502 2.9957323 3.4657359 4.0253517
## [2851] 3.6888795 3.2188758 3.9120230 4.0073332 2.1972246 4.0943446
## [2857] 3.6109179 3.8066625 4.4886364 3.6888795 3.5553481 3.8066625
## [2863] 3.7135721 2.1972246 3.2958369 3.8286414 3.6888795 4.5951199
## [2869] 4.2484952 2.9957323 3.6888795 2.9957323 3.8501476 3.6888795
## [2875] 3.4011974 4.0073332 3.6888795 3.8066625 3.8286414 3.6888795
## [2881] 3.6888795 3.9120230 3.6888795 3.2188758 3.6888795
#1. B.) Here is the histogram for the natural logarithm of HRS1
GSSdata%>%ggvis(~ln_HRS1)%>%layer_histograms()
## Guessing width = 0.2 # range / 23

##The Picture of the histogram for the natural logarithm of HRS1

#2. A.) Here is the ordinary least squares regression using HRS1 as the dependent
#variable and I_AGE, I_SEX, and I_RELIGION as the independent variables.
hrs_factors<-lm(HRS1~I_AGE+I_SEX+I_RELIGION, data = GSSdata)

hrs_factors
## 
## Call:
## lm(formula = HRS1 ~ I_AGE + I_SEX + I_RELIGION, data = GSSdata)
## 
## Coefficients:
## (Intercept)        I_AGE        I_SEX   I_RELIGION  
##     56.6000      -6.8802      -8.5905       0.1637
summary(hrs_factors)
## 
## Call:
## lm(formula = HRS1 ~ I_AGE + I_SEX + I_RELIGION, data = GSSdata)
## 
## Residuals:
##     Min      1Q  Median      3Q     Max 
## -42.948 -19.942  -1.313  16.749  85.774 
## 
## Coefficients:
##             Estimate Std. Error t value Pr(>|t|)    
## (Intercept)  56.6000     1.5229  37.166   <2e-16 ***
## I_AGE        -6.8802     0.2850 -24.141   <2e-16 ***
## I_SEX        -8.5905     0.6540 -13.135   <2e-16 ***
## I_RELIGION    0.1637     0.2379   0.688    0.491    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 22.36 on 4752 degrees of freedom
##   (64 observations deleted due to missingness)
## Multiple R-squared:  0.1453, Adjusted R-squared:  0.1448 
## F-statistic: 269.3 on 3 and 4752 DF,  p-value: < 2.2e-16
confint(hrs_factors)
##                  2.5 %     97.5 %
## (Intercept) 53.6144339 59.5856647
## I_AGE       -7.4389696 -6.3214998
## I_SEX       -9.8726597 -7.3083293
## I_RELIGION  -0.3026711  0.6301078
#2. B.) Here is the ordinary least squares regression using the natural logarithym 
#of HRS1 as the dependent variable and the same set of independent variabls that I 
#chose in 2.A.
ln_hrs_factors<-lm(ln_HRS1~I_AGE+I_SEX+I_RELIGION, data = GSSdata)

ln_hrs_factors
## 
## Call:
## lm(formula = ln_HRS1 ~ I_AGE + I_SEX + I_RELIGION, data = GSSdata)
## 
## Coefficients:
## (Intercept)        I_AGE        I_SEX   I_RELIGION  
##     4.02723     -0.04005     -0.20584     -0.01001
summary(ln_hrs_factors)
## 
## Call:
## lm(formula = ln_HRS1 ~ I_AGE + I_SEX + I_RELIGION, data = GSSdata)
## 
## Residuals:
##     Min      1Q  Median      3Q     Max 
## -3.7213 -0.0697  0.1334  0.2608  1.1496 
## 
## Coefficients:
##              Estimate Std. Error t value Pr(>|t|)    
## (Intercept)  4.027234   0.048433  83.151  < 2e-16 ***
## I_AGE       -0.040045   0.011034  -3.629 0.000289 ***
## I_SEX       -0.205845   0.020678  -9.955  < 2e-16 ***
## I_RELIGION  -0.010010   0.007311  -1.369 0.171058    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 0.5513 on 2847 degrees of freedom
##   (1969 observations deleted due to missingness)
## Multiple R-squared:  0.03755,    Adjusted R-squared:  0.03653 
## F-statistic: 37.02 on 3 and 2847 DF,  p-value: < 2.2e-16
confint(ln_hrs_factors)
##                   2.5 %       97.5 %
## (Intercept)  3.93226715  4.122200192
## I_AGE       -0.06167991 -0.018410186
## I_SEX       -0.24639054 -0.165298482
## I_RELIGION  -0.02434620  0.004325626
#Here I am getting the means and standard deviations of all variables 
#in the HRS1 equation

#HRS1
hrs_factorstbl <- tbl_df(GSSdata)
hrs_factorstbl %>%
  summarise(mean_HRS1=mean(HRS1), mean_I_AGE=mean(I_AGE,na.rm=TRUE), mean_I_SEX=mean(I_SEX),
            mean_I_RELIGION = mean(I_RELIGION,na.rm=TRUE)) 
## Source: local data frame [1 x 4]
## 
##   mean_HRS1 mean_I_AGE mean_I_SEX mean_I_RELIGION
##       (dbl)      (dbl)      (dbl)           (dbl)
## 1  24.07573   2.831411   1.557676        2.150115
hrs_factorstbl %>%
  summarise(sd_HRS1=sd(HRS1), sd_I_AGE=sd(I_AGE,na.rm=TRUE), sd_I_SEX=sd(I_SEX),
            sd_I_RELIGION = sd(I_RELIGION,na.rm=TRUE))
## Source: local data frame [1 x 4]
## 
##    sd_HRS1 sd_I_AGE  sd_I_SEX sd_I_RELIGION
##      (dbl)    (dbl)     (dbl)         (dbl)
## 1 24.19891 1.170855 0.4967138      1.404815
#Here I am getting the means and standard deviations of all variables 
#in the logarithym of HRS1 equation

#logarithym of HRS1

ln_hrs_factorstbl <- tbl_df(GSSdata)
ln_hrs_factorstbl %>%
  summarise(mean_ln_HRS1=mean(ln_HRS1,na.rm=TRUE), mean_I_AGE=mean(I_AGE,na.rm=TRUE), mean_I_SEX=mean(I_SEX,na.rm=TRUE),
            mean_I_RELIGION = mean(I_RELIGION,na.rm=TRUE)) 
## Source: local data frame [1 x 4]
## 
##   mean_ln_HRS1 mean_I_AGE mean_I_SEX mean_I_RELIGION
##          (dbl)      (dbl)      (dbl)           (dbl)
## 1     3.595463   2.831411   1.557676        2.150115
ln_hrs_factorstbl %>%
  summarise(sd_ln_HRS1=sd(ln_HRS1,na.rm=TRUE), sd_I_AGE=sd(I_AGE,na.rm=TRUE), sd_I_SEX=sd(I_SEX,na.rm=TRUE),
            sd_I_RELIGION = sd(I_RELIGION,na.rm=TRUE))
## Source: local data frame [1 x 4]
## 
##   sd_ln_HRS1 sd_I_AGE  sd_I_SEX sd_I_RELIGION
##        (dbl)    (dbl)     (dbl)         (dbl)
## 1   0.560348 1.170855 0.4967138      1.404815

Table1. Relationship Between HRS1 and I_AGE, I_SEX, and I_RELIGION

Null Hypothesis

There is no relationship between the dependent variable and the

entire set of independent variables.

Results: Since the alpha is set at .05, and the p-value being 2.2e-16 which is less than alpha, we reject the null hypothesis that there is no relationship between the dependent variable and the entire set of independent variables.

5.) The estimate of the population coefficient for I_AGE in the table is -6.88 (rounded). This means that there is a negative relationship between ‘HRS1’ and ‘I_AGE’ – as I_AGE increases, HRS1 decreases.

Table2. Relationship Between ln_HRS1 and I_AGE, I_SEX, and I_RELIGION

Null Hypothesis

There is no relationship between the dependent variable and the

entire set of independent variables.

Results: Since the alpha is set at .05, and the p-value being 2.2e-16 which is less than alpha, we reject the null hypothesis that there is no relationship between the dependent variable and the entire set of independent variables.

5.) The estimate of the population coefficient for I_SEX in the table is -0.21 (rounded). This means that there is a negative relationship between ‘lnHRS1’ and ‘I_SEX’ – as I_SEX increases, lnHRS1 decreases.

```