Description Usage Arguments Value
Returns the log likelihood at the provided parameter and data values
1  | loglik(pars, m, M, n, kYW, kYM, kOW, kOM, DYW, DYM, DOW, DOM, K)
 | 
pars | 
 Vector of starting values for estimating unknown parameters, vector must have names(pars) that identify the individual elements consistent with names(work[["start"]]), where the object work is output of the get.data function  | 
m | 
 Vector of sample sizes by gender, sexual identity and age group, vector must have names(m) that identify the individual elements consistent with names(work[["m"]]), where the object work is output of the get.data function  | 
M | 
 Vector of sample sizes by gender and age group, vector must have names(M) that identify the individual elements consistent with names(work[["M"]]), where the object work is output of the get.data function  | 
n | 
 4 by 3 matrix of sample mixing totals, matrix must have row.names(n) and column.names(n) that identify the individual elements consistent with names(work[["n"]]), where the object work is output of the get.data function  | 
kYW | 
 Vector of observed degree values in the sample for younger women, ordered from lowest to highest  | 
kYM | 
 Vector of observed degree values in the sample for younger men, ordered from lowest to highest  | 
kOW | 
 Vector of observed degree values in the sample for older women, ordered from lowest to highest  | 
kOM | 
 Vector of observed degree values in the sample for older men, ordered from lowest to highest  | 
DYW | 
 Vector of observed degree counts in the sample for younger women, ordered in increasing order of corresponding degree value  | 
DYM | 
 Vector of observed degree counts in the sample for younger men, ordered in increasing order of corresponding degree value  | 
DOW | 
 Vector of observed degree counts in the sample for older women, ordered in increasing order of corresponding degree value  | 
DOM | 
 Vector of observed degree counts in the sample for older men, ordered in increasing order of corresponding degree value  | 
K | 
 Degree value cutoff  | 
The log likelihood evaluated at the provided data and parameter values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.