View source: R/likelihood_pa.R
likelihood_pa | R Documentation |
likelihood_pa
Calculates the log-likelihood scores
for use in estimate_pa.R. Setting na.rm = T assumes that missing values
are true negatives.
likelihood_pa(test_prop_adaptive, input, na.rm = F)
test_prop_adaptive |
numeric |
input |
numeric vector |
length-one numeric
array1 <- array (0,c(5000,20)) array1[cbind(1:20,1:20)] <- 1 array1[1:5,1:3] <- 1 array1[6:10,4:6] <- 1 test_proportion <- 0.2 likelihood_pa (test_proportion, array1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.