
Life satisfaction ~ GDP per capita (Geron Eq 4-1, morie.fn grn001)
Source:R/geron_train_native.R
morie_geron_ch4_simple_linear_life_satisfaction.RdDelegates to morie_geron_ch4_linear_regression_prediction().
Examples
morie_geron_ch4_simple_linear_life_satisfaction(theta_0 = 5L, theta_1 = 5L,
GDP_per_capita = c(1, 2, 3, 4, 5, 6, 7, 8))
#> $life_satisfaction
#> [1] 10 15 20 25 30 35 40 45
#>
#> $theta_0
#> [1] 5
#>
#> $theta_1
#> [1] 5
#>
#> $estimate
#> [1] 10 15 20 25 30 35 40 45
#>
#> $n
#> [1] 8
#>