genmod2: Second generative model

Description Usage Arguments Value

View source: R/genmods.R

Description

genmod2 generates data from a simple nonlinear generative model for simulation experiments.

Usage

1
genmod2(n, mu, beta, variance, q)

Arguments

n

Sample size.

mu

A parameter giving the mean (times plus or minus one).

beta

A vector of parameters with length equal to the number of covariates.

variance

The variance of the error term.

q

A parameter to control the proportion that is diseased.

Value

A list with the following components: A, a vector of class labels; and X, a matrix of covariates.


djluckett/svmroc documentation built on Oct. 6, 2019, 12:42 a.m.