get.X.diff: get.X.diff

Description Usage Arguments Details Value Author(s) Examples

View source: R/get_K_Q.R

Description

computes X.diff matrix

Usage

1
2
3
4
5
get.X.diff (x1,...)
## Default S3 method:
get.X.diff(x1,x2,...)
## S3 method for class 'formula'
get.X.diff(formula, data,...)

Arguments

x1

data matrix from the case group, dimension n1 x d

x2

data matrix from the non-case group, dimension n2 x d

formula

a formula

data

a data frame

...

arguments passed 'to' or 'from' methods

Details

In get.X.diff.formula, x is the case predictors and x2 control.

Value

A (n1*n2) x d matrix

Author(s)

Shuxin Yin
Youyi Fong youyifong@gmail.com
Krisztian Sebestyen

Examples

1
2
3
4
5
6
7
dat = sim.dat.1(n=100,seed=1)
X1 = as.matrix(subset(dat, y==0, select=c(x1,x2)))
X2 = as.matrix(subset(dat, y==1, select=c(x1,x2)))
X.diff = get.X.diff (X1, X2)
dim(X1)
dim(X2)
dim(X.diff)

aucm documentation built on Jan. 11, 2020, 9:43 a.m.

Related to get.X.diff in aucm...