Description Usage Arguments Value References See Also Examples
This function is used to produce maximum likelihood estimation for model fittings. With identification of the model fitted to the given data set with certain constrains of parameters, both numerical method and closed form based method are available to obtain the maximum likelihood estimate of parameters. Hessian matrix of log-likelihood at the estimate is provided to obtain the standard errors of the estimate.
1 2 3 |
dataset |
a data frame of input. This data frame should contain 6 columns, including the id of twin/sibling pairs, the rG value for the pairs, as well as the observed M1, M2, P1 and P2 values. The M1, M2, P1, P2 data would NOT be automatically standardized. |
rGvalue |
a correlation value of genetic influences to a pair of twins/siblings. A value close to one is used to replace exact one to avoid calculations with singular matrices. This value cannot be the same for all pairs for the same reason. |
modelname |
a character string input specifying which model should be fitted. Possible choices include
|
zeroset |
a set of parameters that would be set zeros in the estimation. Character string for parameter names would be used for identification. |
closedform |
logical type indicating whether closed form method or numerical method should be applied to likelihood calculation. |
K |
an integer indicating the number of points in each dimension in numerical integration. |
coreNumber |
a positive integer representing whether and how parallel computation should be used. The fault value is set to be 1, and no parallel computation is necessary. A number greater than 1 indicates how many processors would be used in parallel computation. |
manualinitial |
a list of numerical values used for initializing the parameters excluding members in the zeroset. |
priority |
a positive number specifying the priority of manual initialization. It takes values in 1 and 2. Priority=2 implies that the manual initialization would override possible update built in the optimization. |
gradientlevel |
a positive value which serves as a threshold. A warning information would be produced if the maximum absolute value of gradient components exceeds this level. |
An S4 class of output with 10 slots would be returned.
|
maximum log-likelihood value from fitting indicated model to the input data set. |
|
Bayesian information criterion (BIC) value from the model fitting. |
|
parameter estimates. |
|
Hessian matrix of log-likelihood at the maximum point with respect to parameters. |
|
gradient components of log-likelihood at the maximum point with respect to parameters. |
|
inherited from input. |
|
inherited from input. |
|
inherited from input. |
|
inherited from input. |
|
inherited from input. |
Rathouz, P. J., Van Hulle, C. A., Rodgers, J. L., Waldman, I. D., Lahey, B. B. (2008) Specification, testing, and interpretation of gene-by-measured-environment interaction models in the presence of gene-environment correlation. Behavior Genetics, 38(3), 301-315.
checkGxM, summaryGxM
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.