oohbsyn: Synthetic data set for oohbchoice()

oohbsynR Documentation

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

oohbchoice, turnbull.oohb

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 documentation built on July 26, 2023, 6:11 p.m.