Description Usage Arguments Details Value Author(s) References Examples
Computing and plotting the technical efficiency.
1 | TE(theta,Y,X,family=1)
|
theta |
The estimated parameters form the model |
Y |
Vector of dependent variable |
X |
Matrix of independent variable |
family |
Copula function eg. Gaussain=1, Student-t=2 (see, Vinecopula package) |
Computing and plotting the technical efficiency.
itemOutput Technical efficiency series itemplot Plot of Technical efficiency
Woraphon Yamaka
Wiboonpongse, A., Liu, J., Sriboonchitta, S., & Denoeux, T. (2015). Modeling dependence between error components of the stochastic frontier model using copula: application to intercrop coffee production in Northern Thailand. International Journal of Approximate Reasoning, 65, 34-44.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Required packages
library(truncnorm)
library(mvtnorm)
library("VineCopula")
library("frontier")
#example simulation data
data=sfa.simu(nob=200, alpha=c(1,2,0.5),sigV=1,sigU=0.5,family=1,rho=0.5)
# Select familty copula upper and lower bouubd ( look at CDVine package)
# family=1 # 1 is Gaussian, 2 is Student-t, 3 is Clayton and so on....
#Gaussian (-.99, .99)
#Student t (-.99, .99)
#Clayton (0.1, Inf)
model=copSFM(Y=data$Y,X=data$X,family=1,RHO=0.5,LB=-0.99,UB=0.99)
#EX: Plot the technical efficiency
te1=TE1(model$result[,1],Y=data$Y,X=data$X,family=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.