## 
## 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

1) Descriptive Statistics and Graphs for each Group (US vs. Foreign Born Houshold Heads)

Creating a subset to only use households with “Head of Household” (as done before):

Average, SD, Standard Error of Family Size, Head inside U.S. / outside U.S. born from previous homework

## # A tibble: 2 x 4
##         bornus `mean(famsize)` `sd(famsize)` `mySE(famsize)`
##          <chr>           <dbl>         <dbl>           <dbl>
## 1 Foreign Born        2.934445      1.683525    1.059154e-04
## 2      US Born        2.290301      1.332221    1.313672e-05

Histogram

Box Plot

## Don't know how to automatically pick scale for object of type labelled. Defaulting to continuous.

2) Linear Model Test for Equality of the Family Size Variable

Summary using the Linear Model

##            term   estimate  std.error statistic p.value
## 1   (Intercept)  2.9344448 0.01098588 267.11061       0
## 2 bornusUS Born -0.6441438 0.01181550 -54.51685       0

Graph

Transforamtion using Logarithm

##            term   estimate   std.error statistic p.value
## 1   (Intercept)  0.9053601 0.004402847 205.63063       0
## 2 bornusUS Born -0.2286906 0.004735337 -48.29448       0

Logarythmic Graph

Transformation using Square Root

##            term   estimate   std.error statistic p.value
## 1   (Intercept)  1.6438702 0.003334192 493.03400       0
## 2 bornusUS Born -0.1870618 0.003585981 -52.16474       0

Square Rooted Graph

Reciprocal Transformation

##            term   estimate   std.error statistic p.value
## 1   (Intercept) 0.48544443 0.002368842 204.92901       0
## 2 bornusUS Born 0.09986373 0.002547730  39.19714       0

Reciprocal Graph