covariables: concatenation of the rownames of X and of the response vector...

Description Usage Arguments Details Value Examples

Description

concatenation of the rownames of X and of the response vector Y.

Usage

1

Arguments

X

the matrix (or data.frame) of covariates, dimension n*p (n is the sample size, p the number of covariates). X must have rownames, which are the names of the n subjects (i.e. the user ID of the n subjects).

Y

the vector of the response, length n.

Details

internal function. Concatenation of the rownames of X (X is the matrix n*p of the covariates), and of the response vector Y. X must have rownames, which are the names of the n subjects (i.e. the user ID of the n subjects).

Value

a data.frame with dimension n*2: the first column gives the names of the subjects, and the second column is Y.

Examples

1
2
3
X<-matrix(rnorm(50),nrow=10)
rownames(X)<-letters[1:10]
covariables(X, 1:10)

armada documentation built on May 2, 2019, 6:37 a.m.

Related to covariables in armada...