Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

oohbsyn

Synthetic data set for oohbchoice()


Description

Dataset created artificially for the examples section of the function oohbhoice().

Usage

data(oohbsyn)

Format

A data frame with 80 observations on the following variables.

id

a vector of the identification number of the respondent.

gender

a vector containing the gender of the respondent, taking male or female.

age

a vector containing the age of the respondent.

BL

a vector of lower bid.

BH

a vector of higher bid.

R1

a vector of response to the first stage CV question, taking a value of 1 if the bid is accepted, and 0 otherwise.

R2

a vector of response to the second stage CV question, taking a value of 1 if the bid is accepted, 0 if the bid is not accepted, and -9 if the respondent has no the second stage question.

See Also

Examples

## Parametric model
data(oohbsyn)
oohb1 <- oohbchoice(R1 + R2 ~ 1 | log(BL) + log(BH), data = oohbsyn)
summary(oohb1)
oohb2 <- oohbchoice(R1 + R2 ~ age + gender | log(BL) + log(BH), data = oohbsyn)
summary(oohb2)

## Non-parametric model
oohb3 <- turnbull.oohb(R1 + R2 ~ BL + BH, data = oohbsyn)
summary(oohb3)
plot(oohb3)

DCchoice

Analyzing Dichotomous Choice Contingent Valuation Data

v0.0.17
GPL (>= 2)
Authors
Tomoaki Nakatani [aut, cph] (original developer), Hideo Aizaki [aut, cre] (code patches), Kazuo Sato [ctb] (theoretical part of the manual)
Initial release
2020-09-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.