Learn R Programming

flexmixNL (version 0.0.1)

GReg: Artificial Example for Gamma Regression

Description

A simple artificial regression example containing 200 data points with two latent classes. The data set includes one independent variable (uniform on \([0,10]\)) and one dependent variable with gamma distribution.

Usage

data("GReg")

Arguments

Format

This data frame contains the following columns:

x

a numeric vector giving the independent variable.

yg

a numeric vector giving the dependent variable with gamma distribution.

class

a numeric vector indicating the labeling of the data points to two distinct classes.

Examples

Run this code
# NOT RUN {
data("GReg", package = "flexmixNL")
plot(yg ~ x, col = class, data = GReg)
# }

Run the code above in your browser using DataLab