diff --git a/R/poetest.R b/R/poetest.R index 74610a4b586456169b0cf69522ffd9fb7d09b08d..ce120d6ddc02e5842997550a592f9c0bd8fea521 100644 --- a/R/poetest.R +++ b/R/poetest.R @@ -14,7 +14,8 @@ #' @export #' #' @examples \dontrun{ -#' poeresults<-poetest(n=5000, model1 = clmodels[[model_1]],model2 = clmodels[[model_2]], att=attr, price = "bcost") +#' poeresults<-poetest(n=5000, model1 = clmodels[[model_1]],model2 = clmodels[[model_2]], +#' att=attr, price = "bcost") #' } diff --git a/man/poetest.Rd b/man/poetest.Rd new file mode 100644 index 0000000000000000000000000000000000000000..d5047db931d0db16765322d70172f99d7c02564c --- /dev/null +++ b/man/poetest.Rd @@ -0,0 +1,31 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/poetest.R +\name{poetest} +\alias{poetest} +\title{Perform the Poe (2005) test on different discrete choice models} +\usage{ +poetest(n, model1, model2, att, price) +} +\arguments{ +\item{n}{number of draws} + +\item{model1}{Model from which to take the first WTP values} + +\item{model2}{Model from which to take the second WTP values} + +\item{att}{Vector of attributes whose WTP values you want to compare} + +\item{price}{name of the price coefficient} +} +\value{ +a p value associated with "WTP1>WTP2" +} +\description{ +Perform the Poe (2005) test on different discrete choice models +} +\examples{ +\dontrun{ +poeresults<-poetest(n=5000, model1 = clmodels[[model_1]],model2 = clmodels[[model_2]], + att=attr, price = "bcost") +} +}