In [1]:
%load_ext rpy2.ipython
In [2]:
%%R
# I had to import foreign to get access to read.dta
library("foreign")
kidiq <- read.dta("../../ARM_Data/child.iq/kidiq.dta")
# I won't attach kidiq-- i generally don't attach to avoid confusion(s)
#attach(kidiq)
Load the arm library-- see the Chapter 3.1 notebook if you need help.
In [8]:
%%R
library("arm")
In [4]:
%%R
fit.3 <- lm(kidiq$kid_score ~ kidiq$mom_hs + kidiq$mom_iq)
In [5]:
%%R
display(fit.3)
In [6]:
%%R
print(fit.3)
In [7]:
%%R
summary(fit.3)