I have data on birth proportion every year for four different countries. I have fitted this data with four simple regression lines using the code:-
mbirthprop <- read.csv("ex0724.csv")
attach(mbirthprop)
summary(lm(Denmark~Year))
summary(lm(Netherlands~Year))
summary(lm(Canada~Year))
summary(lm(USA~Year))
The goal is to calculate the t-statistic for the test that the slopes of the regressions are zero using R. How do I do that? Also how to print out/display the graphs with the regression line?