[R] Compatibility of AIC values calculated with different link functions?

2009-11-20 Thread ¸ren Faurby
In a binomial regression analysis I have used the AIC value as a guide for which link function (logit or probit) provides the best fit to my data, but one of the reviewers have questioned this approach. Is AIC values calculated with different link functions within the binomial function in G

[R] Fishers exact test at < 2.2e-16

2009-12-17 Thread ¸ren Faurby
In an effort to select the most appropriate number of clusters in a mixture analysis I am comparing the expected and actual membership of individuals in various clusters using the Fisher?s exact test. I aim for the model with the lowest possible p-value, but I frequently get p-values below 2.2e-16

[R] Generating uniformly distributed correlated data.

2011-02-19 Thread ¸ren Faurby
I wish to generate a vector of uniformly distributed data with a defined correlation to another vector The only function I have been able to find doing something similar is corgen from the library ecodist. The following code generates data with the desired correlation to the vector x but

Re: [R] Generating uniformly distributed correlated data.

2011-02-20 Thread ¸ren Faurby
ht also Google for "tetrachoric correlation". # OR: u <- findFn('uniformly distributed correlated data') # 3 matches Hope this helps. Spencer On 2/19/2011 9:21 PM, Jorge Ivan Velez wrote: Hi Soren, Take a look at http://tolstoy.newcastle.edu.au/R/h