Re: [R] Using optim with parameters that are factors (instead of continuous parameters)

2011-10-27 Thread Lucas Merrill Brown
Ben, Thank you for the incredibly helpful suggestions and links. I've been exploring each over the past few days, and for anyone else's future reference, here's what I've found. (1) I was able to use SANN to specify how to choose new candidate solutions, but I wasn't able to easily use SANN for

[R] Using optim with parameters that are factors (instead of continuous parameters)

2011-10-22 Thread Lucas Merrill Brown
I've been programming maximum likelihood estimation models using the function optim. My current research requires modeling a particular parameter as a categorical variable (what R calls a factor), not as a continuous parameter. (The research question is, at what level of X does a subject in our

Re: [R] Using optim with parameters that are factors (instead of continuous parameters)

2011-10-22 Thread Ben Bolker
Lucas Merrill Brown lucas.merrill.brown at gmail.com writes: I've been programming maximum likelihood estimation models using the function optim. My current research requires modeling a particular parameter as a categorical variable (what R calls a factor), not as a continuous parameter.