genmod3: Third generative model

Description Usage Arguments Value

View source: R/genmods.R

Description

genmod3 generates data from a simple linear generative model with some nonnormal covariates for simulation experiments.

Usage

1
genmod3(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.