dicho: Dichotomization

Description Usage Arguments Value Author(s) See Also Examples

View source: R/dicho.R

Description

This function takes a real value and converts it to 1 if it is positive and else to 0.

Usage

1
dicho(val)

Arguments

val

A real value

Value

0 or 1.

Author(s)

Frédéric Bertrand
frederic.bertrand@math.unistra.fr
https://fbertran.github.io/homepage/

See Also

ifelse

Examples

1
2
3
4
5
6
7
dimX <- 6
Astar <- 4
(dataAstar4 <- t(replicate(10,simul_data_YX(dimX,Astar))))

dicho(dataAstar4)

rm(list=c("dimX","Astar"))

plsRglm documentation built on March 16, 2021, 1:08 a.m.