[Master Index]
[Index for export/lyngby]
lyngby_pde_binmix_ll
(export/lyngby/lyngby_pde_binmix_ll.m)
Function Synopsis
[ll, A, B] = lyngby_pde_binmix_ll(N, P1, P2, lambda)
Help text
lyngby_pde_binmix_ll - Loglikelihood of mixture of binomials
[ll, A, B] = lyngby_pde_binmix_ll(N, P1, P2, lambda)
Computes the log-likelihood of the binomial mixture.
Ref: John Uebersax, MIXBIN.
Example:
N = [ 13560 877 168 66 42 28 23 39 64];
x=0:0.01:1;
for n=1:length(x)
ll(n) = lyngby_pde_binmix_ll(N, x(n), 0.01, 0.0195);
end
figure, plot(x, ll)
y=0.001:0.001:0.03
for n=1:length(x)
for m=1:length(y)
ll(m,n) = lyngby_pde_binmix_ll(N, x(n), y(m), 0.0195);
end
end
figure, mesh(x, y, ll), xlabel('x'), ylabel('y')
See also LYNGBY, LYNGBY_PDE_BINMIX, LYNGBY_PDE_BINMIX_DER.
$Id: lyngby_pde_binmix_ll.m,v 1.1 2004/03/08 21:42:42 fnielsen Exp $
Cross-Reference Information
This function is called by
Produced by mat2html on Wed Jul 29 15:43:40 2009
Cross-Directory links are: OFF