Description Usage Arguments Value Author(s) See Also Examples
Extracts the number of observations for which efficiencies are estimated
by SF or DEA model estimated by sf
, teradial
,
tenonradial
, or teradialbc
.
1 2 |
object |
an object of class |
... |
currently unused. |
nobs.npsf
returns the number of observations for which efficiencies are estimated by SF or DEA model.
Oleg Badunenko <oleg.badunenko@brunel.ac.uk>
vcov.npsf
, coef.npsf
, summary.npsf
, and sf
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 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")
nobs( m1 )
# DEA
t1 <- teradialbc ( Y ~ K + L, data = pwt56, subset = Nu < 10)
nobs(t1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.