Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
choiceTools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dj44vuri
choiceTools
Commits
52081e76
Commit
52081e76
authored
10 months ago
by
Jungehülsing
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation for the poetest function
parent
cdd6a93e
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Add Poetest and its documentation
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NAMESPACE
+1
-0
1 addition, 0 deletions
NAMESPACE
R/poetest.R
+18
-1
18 additions, 1 deletion
R/poetest.R
man/takedraws.Rd
+30
-0
30 additions, 0 deletions
man/takedraws.Rd
with
49 additions
and
1 deletion
NAMESPACE
+
1
−
0
View file @
52081e76
...
...
@@ -5,4 +5,5 @@ export(createSets)
export(quicktexregapollo)
export(remGOF)
export(subcoef)
export(takedraws)
importFrom(magrittr,"%>%")
This diff is collapsed.
Click to expand it.
R/poetest.R
+
18
−
1
View file @
52081e76
# This function lets us perform the Poe (2005) test on WTP values
#' Perform the Poe (2005) test on different discrete choice models
#'
#' @param n number of draws
#' @param model1 Model from which to take the first WTP values
#' @param model2 Model from which to take the second WTP values
#' @param att Vector of attributes whose WTP values you want to compare
#' @param price nmae of the price coefficient
#'
#'
#' @return a p value associated with "WTP1>WTP2"
#' @export
#'
#' @examples {
#' poeresults<-poetest(n=5000, model1 = clmodels[[model_1]],model2 = clmodels[[model_2]], att=attr, price = "bcost")
#' }
## Extract relevant elements of models
...
...
This diff is collapsed.
Click to expand it.
man/takedraws.Rd
0 → 100644
+
30
−
0
View file @
52081e76
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/poetest.R
\name{takedraws}
\alias{takedraws}
\title{Perform the Poe (2005) test on different discrete choice models}
\usage{
takedraws(n = 10000, beta, vc)
}
\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}{nmae of the price coefficient}
}
\value{
a p value associated with "WTP1>WTP2"
}
\description{
Perform the Poe (2005) test on different discrete choice models
}
\examples{
{
poeresults<-poetest(n=5000, model1 = clmodels[[model_1]],model2 = clmodels[[model_2]], att=attr, price = "bcost")
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment