mwtp(output, monetary.variables, nonmonetary.variables = NULL, nreplications = 10000, percentile.points = NULL, confidence.level = 0.95, method = "kr", seed = NULL)
"print"(x, digits = max(3, getOption("digits") - 3), scientific = FALSE, ...)clogit in the package survival or from the function glm in the package stats.
output used to calculate the MWTPs.
output used to calculate the MWTPs. Its default is NULL.
10000.
confidence.level is used instead.
0.95, which indicates the lower and upper bounds of the 95 percent confidence interval.
format.
format.
format.
mwtps can be used for a function mded in the package mded that calculates differences between two independent/dependent empirical distributions of the MWTPs.
In the Krinsky and Robb's method, N replications of a vector of the coefficients in the model are randomly sampled from a multivariate normal distribution with a vector of means and a variance-covariance matrix of the estimated coefficients. An empirical distribution for each of the MWTPs can be generated from N sets of the replicated coefficients, and a confidence interval for each of the MWTPs is identified on the basis of each empirical distribution.
In the delta method, a variance of MWTP of the non-monetary variable is calculated using estimated coefficients and variance-covariance matrix regarding the non-monetary and monetary variables, and then a confidence interval for the MWTP is calculated.
When the argument nonmonetary.variables is not set by the user, variables in the argument output---except for those assigned by the argument monetary.variables---are treated as non-monetary variables, and the MWTPs for these variables are calculated. In the model that assumes alternative-specific attribute variables (that is, a labeled type choice experiment design), variables in the argument output are classified into monetary and non-monetary variables according to the alternatives. Therefore, the argument monetary.variables is set as a vector, whereas the argument nonmonetary.variables is set as a list of vectors.
In version 0.3-0 and later versions, this function is also available for binary choice models estimated using the function glm.
Krinsky, I. and Robb. A. L. (1986) On Approximating the Statistical Properties of Elasticities. The Review of Economics and Statistics, 68, 715--719.
Hole, A. R. (2007) A Comparison of Approaches to Estimating COnfidence Intervals for Willingness to Pay Measures. Health Economics, 16, 827--840.
Aizaki, H. (2012) Basic Functions for Supporting an Implementation of Choice Experiments in R. Journal of Statistical Software, Code Snippets, 50(2), 1--24. http://www.jstatsoft.org/v50/c02/
make.dataset, clogit, glm, mded
# See "Examples" for the function make.dataset.
Run the code above in your browser using DataLab