R/is.bern.R

Defines functions is.bern

Documented in is.bern

is.bern <-
function(x)
{
	re=Inf;
	for(i in 1:length(x))
		if(x[i]!=1&&x[i]!=0)
			re=-1;
        if(re==-1)   
        {  
	    return(data.frame("state"=-1,"pvalue"=1));
        }
        else
        {
            return(data.frame("qchisq"=Inf,"pvalue"=0));  
        }
}

Try the DnE package in your browser

Any scripts or data that you put into this service are public.

DnE documentation built on May 2, 2019, 4:03 p.m.