R/isdatadicho.R

is_data_dicho = function ( data ) {
 maximum = max(data)		
 minimum = min(data)		
   		
 if ( minimum == 0 && maximum == 1 ) return (TRUE)		
 if ( minimum == 1 ) return (FALSE)

 return (-1)
}
SICSresearch/LatentREGpp documentation built on May 9, 2019, 11:13 a.m.