coef.npsf: 'coef' method for class 'npsf'

Description Usage Arguments Value Author(s) See Also Examples

View source: R/coef.npsf.R

Description

Extracts the ML parameters of a stochastic frontier model estimated by sf.

Usage

1
2
 ## S3 method for class 'npsf'
coef( object, ... )

Arguments

object

an object of class npsf returned by the function sf.

...

currently unused.

Value

coef.npsf returns a named vector of the ML parameters of a stochastic frontier model.

Author(s)

Oleg Badunenko <oleg.badunenko@brunel.ac.uk>

See Also

vcov.npsf, nobs.npsf, summary.npsf, and sf.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
require( npsf )
 
# Load Penn World Tables 5.6 dataset
 
data( pwt56 )
head( pwt56 )
 
# Create some missing values
 
pwt56 [4, "K"] <- NA 
 
# Stochastic production frontier model with 
# homoskedastic error components (half-normal)
 
# Use subset of observations - for year 1965
 
m1 <- sf(log(Y) ~ log(L) + log(K), data = pwt56, 
 subset = year == 1965, distribution = "h")
coef( m1 )

npsf documentation built on Nov. 23, 2020, 1:07 a.m.