plot.dbchoice: Plotting dbchoice objects

Description Usage Arguments Details See Also Examples

View source: R/plot.dbchoice.R

Description

Plotting method for objects of class "dbchoice".

Usage

1
2
3
## S3 method for class 'dbchoice'
plot(x, type = NULL, main = NULL, sub = NULL, xlab = NULL, 
ylab = NULL, lwd = NULL, lty = NULL, xlim = NULL, ylim = NULL, bid = NULL, ...)

Arguments

x

an object of class "kristrom".

type

type of plot.

main

the main title of the plot. If unspecified, no main title is displayed.

sub

the sub-title of the plot. If unspecified, no sub-title is displayed.

xlab

the x label of the plot. If missing, xlab = "Bid" is used. Setting xlab = "" displays no x label.

ylab

the y label of the plot. If missing, ylab = "Probability of selecting yes" is used. Setting ylab = "" displays no y label.

lwd

the line width for the plot. If missing, lwd = 3 is used.

lty

the line type for the plot. If missing, lty = 1 is used.

xlim

the x limits of the plot.

ylim

the y limits of the plot.

bid

the bid limits should be drawn. If missing, the minimum and maximum values of the bid variable(s) in the original dataset is used.

...

optional arguments.

Details

The function plot() draws choice probabilities of yes according to the range of bid (covariates are set on average). Choice probabilities are calculated according to the relevant single-bounded dichotomous choice model.

See Also

dbchoice

Examples

1
## See Examples in dbchoice.

Example output

Loading required package: MASS
Loading required package: interval
Loading required package: survival
Loading required package: perm
Loading required package: Icens
Loading required package: MLEcens
Loading required package: Formula

DCchoice documentation built on May 2, 2019, 4:44 p.m.