Learn R Programming

plsRglm (version 0.3.3)

dicho: Dichotomization

Description

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

Usage

dicho(val)

Arguments

val
A real value

Value

  • 0 or 1.

See Also

ifelse

Examples

Run this code
dimX <- 6
Astar <- 4
(dataAstar4 <- t(replicate(10,simul_data_YX(dimX,Astar))))

dicho(dataAstar4)

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

Run the code above in your browser using DataLab