rvbm.sample.train {rpud}R Documentation

Example Data Sets for Variational Bayesian Multiclass Probit Regression

Description

The sample data sets are for demonstration of the rvbm method.

Usage

rvbm.sample.train
rvbm.sample.test

Format

There are two components in each data set:

Note

The data sets are created with the R code found in the vbmp vignette. The only difference between rvbm.sample.train and rvbm.sample.test are the number of data points being generated.

Examples

## Not run: 
library(rpud)

x1 <- rvbm.sample.train$X[, 1]
x2 <- rvbm.sample.train$X[, 2] 
tc <- rvbm.sample.train$t.class

plot(x1, x2, type="n", xlab="X1", ylab="X2")
points(x1[tc==1], x2[tc==1], type="p", col="blue", pch=19)
points(x1[tc==2], x2[tc==2], type="p", col="red")
points(x1[tc==3], x2[tc==3], type="p", col="green", pch=24)


## End(Not run)

[Package rpud version 0.7.0 Index]