Learn R Programming

flexmixNL (version 0.0.1)

NReg: Artificial Example for Normal 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 normal distribution.

Usage

data("NReg")

Arguments

Format

This data frame contains the following columns:

x

a numeric vector giving the independent variable.

yn

a numeric vector giving the dependent variable with normal distribution.

class

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

Examples

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

Run the code above in your browser using DataLab