APPENDIX B - University of California, Riverside



APPENDIX C – S-PLUS CODES CITED IN TEXT

S-PLUS codes discussed in the text. Codes are delineated by chapter and number; e.g. C.2.3. refers to chapter 2, code set 3. In many cases part or all of the calculations can be performed via the dialog boxes (which are not available in R). Comments, suggestions and questions can be sent to Derek.Roff@ucr.edu.

C. 2.1 Calculating parameter values for a threshold model

# Set up function to calculate negative of the log likelihood (minus constants)

# THETA is a vector containing the two parameters to be estimated.

# THETA[1] is p, THETA[2] is the heritability

# r is a vector containing the two values of r

# n is a vector containing the two values of n

LL ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download