Re: [R] multinomial logistic regression with equality constraints?

2007-02-13 Thread Roger Levy
=== Roger Levy writes: Walter Mebane wrote: Roger, Error in if (logliklambda loglik) bvec - blambda : missing value where TRUE/FALSE needed In addition: Warning message: NaNs produced in: sqrt(sigma2GN) That message comes from

Re: [R] multinomial logistic regression with equality constraints?

2007-02-08 Thread Roger Levy
Walter Mebane wrote: Roger, Error in if (logliklambda loglik) bvec - blambda : missing value where TRUE/FALSE needed In addition: Warning message: NaNs produced in: sqrt(sigma2GN) That message comes from the Newton algorithm (defined in source file multinomMLE.R). It would

Re: [R] multinomial logistic regression with equality constraints?

2007-02-06 Thread Roger Levy
Hi again Jasjeet, Walter, I have a further question about an error message I get when running multinomRob. I am simulating a dataset where I look at the effect of making a previous categorical choice on the probability of making the same choice later on. Given the following code: n - 20

Re: [R] multinomial logistic regression with equality constraints?

2007-02-03 Thread Roger Levy
, Roger -- Roger Levy Email: [EMAIL PROTECTED] Assistant Professor Phone: 858-534-7219 Department of Linguistics Fax: 858-534-4789 UC San DiegoWeb: http://ling.ucsd.edu/~rlevy

[R] multinomial logistic regression with equality constraints?

2007-02-02 Thread Roger Levy
} that is, that the effect of X_1 on the logit of Y_2 is the same as the effect of X_2 on the logit of Y_3. Is there an existing facility or package in R for doing this? Would multinomRob fit the bill? Many thanks, Roger -- Roger Levy Email: [EMAIL PROTECTED] Assistant

[R] indexing via a character matrix?

2006-02-13 Thread Roger Levy
of values for A and B but the second step does not work -- I guess that matrices to be used for indexing this way must be numeric. Is there a way to index multiple character tuples out of a contingency table without resorting to writing loops? Many thanks, Roger Levy

Re: [R] indexing via a character matrix?

2006-02-13 Thread Roger Levy
Prof Brian Ripley wrote: On Mon, 13 Feb 2006, Roger Levy wrote: Hi, Is it possible to index via a character matrix? For example, I would like to do the following: cont.table - table(df1$A,df1$B) # df1 a data frame with factors A and B cont.table[cbind(df2$A,df2$B)] # df2 a smaller

[R] displaying Cyrillic in RGui under Windows

2006-02-07 Thread Roger Levy
I have a data frame with Cyrillic text that I would like to be able to view under RGui. Unfortunately I can't figure out from the manuals how to make this happen -- can someone point me in the right direction? Thanks, Roger Levy __ R-help

Re: [R] displaying Cyrillic in RGui under Windows

2006-02-07 Thread Roger Levy
Prof Brian Ripley wrote: On Tue, 7 Feb 2006, Roger Levy wrote: I have a data frame with Cyrillic text that I would like to be able to view under RGui. Unfortunately I can't figure out from the manuals how to make this happen -- can someone point me in the right direction? You can only do

[R] anomalous result for wilcox.exact in exactRankTests

2005-03-20 Thread Roger Levy
Hi, In the exactRankTest package, I've become aware that you can get anomalous p-values (i.e., above 1) from the wilcox.exact method, as in: wilcox.exact(c(-0.6,0.8,-0.5)) Exact Wilcoxon signed rank test data: c(-0.6, 0.8, -0.5) V = 3, p-value = 1.25 alternative hypothesis:

Re: [R] question on indexing of a matrix

2005-02-13 Thread Roger Levy
Peter Dalgaard [EMAIL PROTECTED] writes: Roger Bivand [EMAIL PROTECTED] writes: On 12 Feb 2005, Roger Levy wrote: Hi, I have a k-level factor F of length n that I would like to use to extract from an n-by-k matrix M a vector V such that V[i] = M[i,as.numeric(F)[i

[R] question on indexing of a matrix

2005-02-12 Thread Roger Levy
Hi, I have a k-level factor F of length n that I would like to use to extract from an n-by-k matrix M a vector V such that V[i] = M[i,as.numeric(F)[i]] I don't currently understand how to do that in R -- can anyone explain to me how to do so? Thanks, Roger Levy

[R] labeled break statements in R?

2004-08-18 Thread Roger Levy
Hi, Are there labeled break statements in R? i.e., something along the lines of TOPLOOP: for(i in 1:m) { for(j in 1:n) { ... if(condition) { break TOPLOOP } } } Thanks, Roger __ [EMAIL PROTECTED] mailing list

Re: [R] labeled break statements in R?

2004-08-18 Thread Roger Levy
Prof Brian Ripley [EMAIL PROTECTED] writes: On 18 Aug 2004, Roger Levy wrote: Are there labeled break statements in R? i.e., something along the lines of TOPLOOP: for(i in 1:m) { for(j in 1:n) { ... if(condition) { break TOPLOOP

[R] exact logistic regression facilities in R?

2004-03-30 Thread Roger Levy
Hi, Does R have any facilities for exact logistic regression? Many thanks, Roger __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Re: simple question on picking out some rows of a matrix/data frame

2004-02-09 Thread Roger Levy
Many thanks for the numerous edifying responses! Best Roger __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html