validation.bin {BinNonNor} | R Documentation |
Validates the marginal specification of the binary variables
Description
Checks whether the marginal specification of the binary part is valid and consistent.
Usage
validation.bin(n.BB, prop.vec = NULL)
Arguments
n.BB |
Number of binary variables. |
prop.vec |
Probability vector for binary variables. |
Value
The function returns TRUE if no specification problem is encountered. Otherwise, it returns an error message.
Examples
n.B<-2
prop.vec=c(0.5,0.6)
validation.bin(n.B,prop.vec)
## Not run:
n.B<-3
prop.vec=c(0.5,0.6)
validation.bin(n.B,prop.vec)
n.B<-3
prop.vec=c(0.5,0.6)
validation.bin(n.B)
n.B<-0
prop.vec=c(0.5,0.6)
validation.bin(n.B,prop.vec)
n.B<-3
prop.vec=c(0.5,0.6)
validation.bin(n.B,prop.vec)
n.B<-3
prop.vec=NULL
validation.bin(n.B,prop.vec)
n.B<-3
prop.vec=c(1,1.5,-1.5)
validation.bin(n.B,prop.vec)
## End(Not run)
[Package BinNonNor version 1.5.3 Index]