From 3b06f1bd576ab7a6d77b304593de389651654b34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jungeh=C3=BClsing?= <jj43vyzo@usr.idiv.de>
Date: Thu, 6 Jun 2024 16:05:56 +0200
Subject: [PATCH] minor changes in the documentation of poetest

---
 R/poetest.R    |  3 ++-
 man/poetest.Rd | 31 +++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 man/poetest.Rd

diff --git a/R/poetest.R b/R/poetest.R
index 74610a4..ce120d6 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 0000000..d5047db
--- /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")
+}
+}
-- 
GitLab