ols_fun: OLS Log-likelihood

Description Usage Arguments Value Examples

Description

ols_fun Gives the OLS likelihood given the parameters

Usage

1
ols_fun(dat, param)

Arguments

dat

Dataframe to be used

param

Vector of parameters to be inserted

Value

The Log-likelihood of the OLS

Examples

1
2
3
4
x <- runif(100, 0, 10)
y <- 2*x + rnorm(100,0,1)
dat <- data.frame(y,x)
ols_fun(dat, c(2,1))

Thdegraaff/SpatFrontier documentation built on May 9, 2019, 4:27 p.m.