Skip to contents

Usage

morie_geron_ch4_simple_linear_life_satisfaction(
  theta_0,
  theta_1,
  GDP_per_capita
)

Arguments

theta_0, theta_1

Finite intercept and slope.

GDP_per_capita

Non-negative scalar or vector.

Value

List with life_satisfaction, theta_0, theta_1.

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