Python, Data Analysis, Data Science, R, Machine Learning.
cor(df$father_height, df$children_height) # create an SLR model between children_height and father_height slr <- lm(children_height ~ father_height, data = df) summary(slr) Figure 3. Create an SLR model in R SLR using Python # calculate correlation between children_height and father_height