[R] lmer causes R session to terminate

2016-07-07 Thread David Kikuchi
Hi, I am working with a large dataset of neotropical birds, and am trying to partition the variance in log(body mass) within different taxonomic levels. To better explain what I mean, the taxonomic levels are species, genus, family, and order. Species are within genera, genera are within famillies

[R] glmer with multiple random slopes

2014-10-20 Thread David Kikuchi
Hi all, I'm modeling the probability that a subject attacks or rejects a prey item based on its proportion of yellow coloration and size. There are two populations of prey, one defended and the other undefended, so subjects should reject one type and accept others. Each subject has a unique r

[R] pmnorm to find cdf with linear decision bound

2014-10-01 Thread David Kikuchi
Hi all, I need help calculating the error rate of an optimal responder to a multidimensional discrimination task. I have been trying to use pmnorm to do this, but am not sure about its functionality. I'm working with a dataset of responses (binary, attack/not attack) of subjects who were aske

Re: [R] Change state names to abbreviations in an irregular, list of names, abbreviations, null values, and foreign provinces

2012-01-17 Thread David Kikuchi
Thanks! Both solutions work well for the problem that I described, although I failed to mention that there are also pre-abbreviated names in the list that I'm working with, and the second solution returns NA's for these (but there are plenty of ways around this). Sample data might be: State.P

[R] Change state names to abbreviations in an irregular list of names, abbreviations, null values, and foreign provinces

2012-01-13 Thread David Kikuchi
I'm trying to create maps of reptile abundance in different states & counties using data from Herp.net, which provides lists of specimens with the places that they were found. First I would like to parse the list by state using 2-letter abbreviations, since I'm focusing on certain regions. To

[R] Change state names to abbreviations in an irregular list of names, abbreviations, null values, and foreign provinces

2012-01-13 Thread David Kikuchi
I'm trying to create maps of reptile abundance in different states & counties using data from Herp.net, which provides lists of specimens with the places that they were found. First I would like to parse the list by state using 2-letter abbreviations, since I'm focusing on certain regions. To