Description Usage Arguments Value Examples
View source: R/validation.bin.R
Checks whether the marginal specification of the binary part is valid and consistent.
1 | validation.bin(n.BB, prop.vec = NULL)
|
n.BB |
Number of binary variables. |
prop.vec |
Probability vector for binary variables. |
The function returns TRUE if no specification problem is encountered. Otherwise, it returns an error message.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.