Re: [R] correlation structure in lmer

2007-08-30 Thread Douglas Bates
On 8/29/07, Fränzi Korner [EMAIL PROTECTED] wrote: how can I specify a correlation structure in the lmer-function as it is possible in lme(formula, ..., corr=corAR1(form=...))? The short answer is you can't. __ R-help@stat.math.ethz.ch mailing list

Re: [R] xeon processor and ATLAS

2007-08-30 Thread Douglas Bates
On 8/29/07, hui xie [EMAIL PROTECTED] wrote: Thanks very much for all your advice. To be clear, my OS is window XP. I bought this server last year. It's Dell Precision PWS690. THe processor is Xeon(TM) CPU 3GHZ, 2G RAM. I am not sure how to check more details of processor on my computer.

Re: [R] correlation structure in lmer

2007-08-30 Thread Douglas Bates
On 8/30/07, Douglas Bates [EMAIL PROTECTED] wrote: On 8/29/07, Fränzi Korner [EMAIL PROTECTED] wrote: how can I specify a correlation structure in the lmer-function as it is possible in lme(formula, ..., corr=corAR1(form=...))? The short answer is you can't. My response was incorrect. I

Re: [R] degrees of freedom question

2007-08-23 Thread Douglas Bates
On 8/22/07, Greg Tarpinian [EMAIL PROTECTED] wrote: R2.3, WinXP Dear all, I am using the following functions: f1 = Phi1+(Phi2-Phi1)/(1+exp((log(Phi3)-log(x))/exp(log(Phi4))) f2 = Phi1+(Phi2-Phi1)/(1+exp((log(Phi3)-log(r)-log(x))/exp(log(Phi4))) subject to the residual weighting

Re: [R] small issue with densityplot

2007-08-21 Thread Douglas Bates
On 8/21/07, Horace Tso [EMAIL PROTECTED] wrote: Deepayan, you're right. Now I realize anyone could write a densityplot function to apply on a different class of objects. I guess I should write to the author of lme4 which from what I could see does not describe a densityplot. By the way, it

Re: [R] invert 160000x160000 matrix

2007-08-14 Thread Douglas Bates
On 8/14/07, Jiao Yang [EMAIL PROTECTED] wrote: Tir, Thank you very much for the note. I'm using an algorithm to analyze a data set of 400 variables and the algorithm uses the inverse of a 16x16 positive definite matrix. The matrix is stored as a text file. A meta-theorem in

Re: [R] lmer() : crossed-random-effects specification

2007-08-07 Thread Douglas Bates
On 8/7/07, Daniel Caro [EMAIL PROTECTED] wrote: Dear all, I want to estimate a crossed-random-effects model (i.e., measurements, students, schools) where students migrate between schools over time. I'm interested in the fixed effects of SES, age and their interaction on read (reading

Re: [R] generating symmetric matrices

2007-07-30 Thread Douglas Bates
On 7/27/07, Gregory Gentlemen [EMAIL PROTECTED] wrote: Greetings, I have a seemingly simple task which I have not been able to solve today. I want to construct a symmetric matrix of arbtriray size w/o using loops. The following I thought would do it: p - 6 Rmat - diag(p) dat.cor -

Re: [R] generating symmetric matrices

2007-07-30 Thread Douglas Bates
On 7/30/07, Gregory Gentlemen [EMAIL PROTECTED] wrote: Douglas Bates [EMAIL PROTECTED] wrote: On 7/27/07, Gregory Gentlemen wrote: Greetings, I have a seemingly simple task which I have not been able to solve today. I want to construct a symmetric matrix of arbtriray size w/o using

Re: [R] imposing constraints on the covariance matrix of random effects in lme4?

2007-07-13 Thread Douglas Bates
On 7/12/07, JVVerkuilen [EMAIL PROTECTED] wrote: Hello all, I am using lme4 to fit some mixed logistic regressions. I need to impose an identification constraint of the following form: (1sig12) (sig12 sig22) and have not figured out how to do it, i.e., sig11 = 1 but the rest of

Re: [R] is.null doesn't work

2007-07-12 Thread Douglas Bates
On 7/12/07, Atte Tenkanen [EMAIL PROTECTED] wrote: Seems to work, if I unlist the argument at first ;-) Atte Hi, What's wrong here?: v=c(`-`,`+`,1,`^`,`^`,NA,NA,X,9,X,2) i2=16 v[i2] [[1]] NULL is.null(v[i2]) [1] FALSE Is it a bug or have I misunderstood something?

Re: [R] Installation on Leopard

2007-07-11 Thread Douglas Bates
On 7/11/07, Helin Gai [EMAIL PROTECTED] wrote: Hi all, I'm wondering whether anyone has installed R on Mac OS X leopard with success. I downloaded the latest version, but couldn't have it installed. Any idea as to how I get around the problem? Thanks! Simon Urbanek has comments about R for

Re: [R] skeleton for C code?

2007-06-27 Thread Douglas Bates
On 6/27/07, ivo welch [EMAIL PROTECTED] wrote: Dear R experts---I would like to write a replacement for the read.csv function that is less general, but also more efficient. could someone please provide me with a skeleton function that shows me how to read the arguments and return a data frame

Re: [R] How to run mathematica or c programs in R?

2007-06-23 Thread Douglas Bates
On 6/22/07, Zhang Jian [EMAIL PROTECTED] wrote: I have some programs which were writen in mathematica or c language, but I donot know how to use these software. So I want to run them in R. Can I do it ? How to run mathematica or c programs in R? To paraphrase Thomas Lumley, Sure. Just

Re: [R] using lme on multiple datasets in one shot

2007-06-22 Thread Douglas Bates
On 6/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear list, I would like to do a huge number of lme's using the same design matrix (and fixed and random effects). Is it possible to do this efficiently? Doing otherwise is not an option for my example. Basically, I am wanting to do the

Re: [R] Question about lmer

2007-06-18 Thread Douglas Bates
On 6/18/07, Julia Proudnikova [EMAIL PROTECTED] wrote: Hello, We have a problem with function lmer. This is our code: Get_values-function(ff_count, fixed_factors, rf_count, random_factors, y_values) { SA-matrix(as.array(c(fixed_factors, random_factors)), ncol=3)

Re: [R] question about formula for lm

2007-06-16 Thread Douglas Bates
On 6/14/07, Greg Snow [EMAIL PROTECTED] wrote: Try: lm( formula( paste( Ytext, '~ Xvar' ) ), data=X) That type of construction is perilously close to parse(paste(...)) and we know what Thomas said about that (see fortune(parse)). A safer way of constructing a formula from names stored in a

Re: [R] How to comment out a piece of a R code in XEmacs+ESS

2007-06-16 Thread Douglas Bates
On 6/16/07, Ronaldo Reis Junior [EMAIL PROTECTED] wrote: When I using Xemacs+ESS to write a R code, I need to comment out a code line by line putting # It is possible to configure ESS to comment and uncomment a selected block of code. This question probably belongs on the ESS-help mailing

Re: [R] R vs. Splus in Pharma/Devices Industry

2007-06-15 Thread Douglas Bates
On 6/15/07, Nicholas Lewin-Koh [EMAIL PROTECTED] wrote: Hi, I just saw this thread. This issue, and the larger scale issue of open source in industry is being addressed. One has to realize that the behemoth that is the clinical aperatus of the pharma industry is very conservative and very

Re: [R] lme() doesn't converge on IGF example

2007-06-13 Thread Douglas Bates
On 6/13/07, David Daniel [EMAIL PROTECTED] wrote: Running the Chapter 4 examples in Pinheiro Bates' Mixed-Effects Models in S and S-PLUS (2000), I get a message that the default optimizer doesn't converge, but using optim for the optimizer results in convergence: library(nlme)

Re: [R] Tools For Preparing Data For Analysis

2007-06-08 Thread Douglas Bates
On 6/7/07, Robert Wilkins [EMAIL PROTECTED] wrote: As noted on the R-project web site itself ( www.r-project.org - Manuals - R Data Import/Export ), it can be cumbersome to prepare messy and dirty data for analysis with the R tool itself. I've also seen at least one S programming book (one of

Re: [R] Extracting lists in the dataframe $ format

2007-06-04 Thread Douglas Bates
On 6/4/07, Stan Hopkins [EMAIL PROTECTED] wrote: I'm new to R and am trying to extract the factors of a dataframe using numeric indices (e.g. df[1]) that are input to a function definition instead of the other types of references (e.g. df$out). df[1] is a list(?) whose class is dataframe.

Re: [R] Interaction term in lmer

2007-06-01 Thread Douglas Bates
On 6/1/07, emine özgür Bayman [EMAIL PROTECTED] wrote: Dear R users, I'm pretty new on using lmer package. My response is binary and I have fixed treatment effect (2 treatments) and random center effect (7 centers). I want to test the effect of treatment by fitting 2 models: Model 1: center

Re: [R] Calling C routine in anther package in C code (R_RegisterCCallable)

2007-06-01 Thread Douglas Bates
It looks like your C++ compiler is mangling the name R_RegisterCCallable. Move the extern C before the #include R_ext/Rdynload.h On 6/1/07, Alex Chen [EMAIL PROTECTED] wrote: Hi, I want to make use of some C routines from other packages to write extensions in C. In Writing R

Re: [R] how to specify starting values in varIdent() of lme()

2007-06-01 Thread Douglas Bates
On 6/1/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I was reading the help but just did not get how to specify starting values for varIdent() of the lme() function, although I managed to do it for corSymm(). Do I specify the values just as they are printed out in an output, like c(1,

Re: [R] parallel processing an lme model

2007-05-29 Thread Douglas Bates
On 5/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All Had anyone of you seen if it is possible to split a large lme() job to be processed by multiple cpus/computers? I am just at the very beginning to understand related things, but does the lme() use solution finding functions

Re: [R] Function to Sort and test AIC for mixed model lme?

2007-05-24 Thread Douglas Bates
On 5/24/07, Ken Nussear [EMAIL PROTECTED] wrote: Ken Nussear knussear at mac.com writes: I'm running a series of mixed models using lme, and I wonder if there is a way to sort them by AIC prior to testing using anova (lme1,lme2,lme3,lme7) other than by hand. You can try

Re: [R] data in packages... a list?

2007-05-22 Thread Douglas Bates
On 5/22/07, Adrian Dusa [EMAIL PROTECTED] wrote: Dear all, Is it possible to add a list in the data folder when creating a new package? Yes. In other words, is data in packages restricted to data.frame only? Well section 1.1.3 of the manual Writing R Extensions say, in part, Currently, data

Re: [R] can I get same results using lme and gls?

2007-05-21 Thread Douglas Bates
On 5/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I was wondering how to get the same results with gls and lme. In my lme, the design matrix for the random effects is (should be) a identity matrix and therefore G should add up with R to produce the R matrix that gls would report

Re: [R] Re-sizing R graphics for Sweave

2007-05-17 Thread Douglas Bates
On 5/16/07, Thomas Adams [EMAIL PROTECTED] wrote: Marc, That did it! Thank you so much for your help… Regards, Tom Marc Schwartz wrote: On Wed, 2007-05-16 at 16:34 -0400, Thomas Adams wrote: I am generating a single graphic containing about 31 Boxplots; the issue I am having is

Re: [R] Matrix package: writeMM

2007-05-17 Thread Douglas Bates
On 5/15/07, Jose Quesada [EMAIL PROTECTED] wrote: Hi, I'm finding that readMM() cannot read a file written with writeMM(). Example: library(Matrix) a = Matrix(c(1,0,3,0,0,5), 10, 10) a = as(a, CsparseMatrix) writeMM(a, kk.mm) b = readMM(kk.mm) Error in validObject(.Object) : invalid

Re: [R] Unable to compile Matrix package

2007-05-16 Thread Douglas Bates
On 5/16/07, Vittorio De Martino [EMAIL PROTECTED] wrote: After upgrading to 2.5.0 under freebsd 6.2 I updated all the add-on packages in an R session via update.packages(...). R was unable to install the Matrix package because it couldn't find the package. Therefore I downloaded the *.tar.gz

Re: [R] lmer function

2007-05-16 Thread Douglas Bates
Message From: Douglas Bates [EMAIL PROTECTED] To: Steven McKinney [EMAIL PROTECTED] Cc: Iasonas Lamprianou [EMAIL PROTECTED]; r-help@stat.math.ethz.ch Sent: Tuesday, 15 May, 2007 2:17:34 AM Subject: Re: [R] lmer function On 5/14/07, Steven McKinney [EMAIL PROTECTED] wrote: Running lme4

Re: [R] lmer error confusion

2007-05-16 Thread Douglas Bates
On 5/16/07, Rick DeShon [EMAIL PROTECTED] wrote: Hi All. I'm trying to run a simple model from Baayan, Davidson, Bates and getting a confusing error message. Any ideas what I'm doing wrong here? # Here's the data. Subj- factor(rep(1:3,each=6)) Item- factor(rep(1:3,6)) SOA

Re: [R] Problem with lme4

2007-05-15 Thread Douglas Bates
On 5/15/07, Seyed Reza Jafarzadeh [EMAIL PROTECTED] wrote: It should be lmer(success ~ yearF + (1 | bandnumb), data=quality, family = binomial, method = PQL) It has to be method = PQL (the quotes are important) except that the PQL method is no longer an option in lmer. Beginning with

Re: [R] R^2 from lme function

2007-05-14 Thread Douglas Bates
On 5/14/07, Martin Henry H. Stevens [EMAIL PROTECTED] wrote: Hi Cleber, By full I simply meant not REML. the function assumes that the fixed effects were estimated using REML criteria, and using update() simply changes that to ML. If the model was fit originally with ML, it shouldn't make

Re: [R] lmer function

2007-05-14 Thread Douglas Bates
On 5/14/07, Iasonas Lamprianou [EMAIL PROTECTED] wrote: Does anyone know if the lmer function of lme4 works fine for unbalanced designs? I have the examination results of 1000 pupils on three subjects, one score every term. So, I have three scores for English (one for every term), three

Re: [R] parsing an lmer error with interaction term

2007-05-14 Thread Douglas Bates
On 5/14/07, Brian Riordan [EMAIL PROTECTED] wrote: I'm trying to specify a model using lmer with a binary response and interaction term, but I get an error I can't parse (see below). Here is some sample data: SubjectConcordAgeDisc SVC999MX148SU-Fyesuint

Re: [R] lmer function

2007-05-14 Thread Douglas Bates
email: [EMAIL PROTECTED] tel: 604-675-8000 x7561 BCCRC Molecular Oncology 675 West 10th Ave, Floor 4 Vancouver B.C. V5Z 1L3 Canada -Original Message- From: [EMAIL PROTECTED] on behalf of Douglas Bates Sent: Mon 5/14/2007 12:43 PM To: Iasonas Lamprianou Cc: r-help

Re: [R] names of objects in .rda

2007-05-11 Thread Douglas Bates
On 5/11/07, Benilton Carvalho [EMAIL PROTECTED] wrote: Hi everyone, sorry if this was discussed before (and in this situation, could you please point me to the discussion in the archive? My search didn't seem to be effective). Is there a way of getting the names of objects in a .rda file

Re: [R] nlme fixed effects specification

2007-05-05 Thread Douglas Bates
On 5/4/07, ivo welch [EMAIL PROTECTED] wrote: hi doug: yikes. could I have done better? Oh dear. I tried to make my example clearer half-way through, but made it worse. I meant set.seed(1); fe = as.factor( as.integer( runif(100)*10 ) ); y=rnorm(100); x=rnorm(100); print(summary(lm( y ~

Re: [R] R² in a non-linear regresion analisys

2007-05-04 Thread Douglas Bates
On 5/4/07, Adrian J. Montero Calvo [EMAIL PROTECTED] wrote: Can anybody explain me how do i get Correlation Coefficient R² in a non-linear regresion analisys performed with nls()?. Thanks in advance. It may seem obvious how to define the multiple correlation coefficient R^2 for a non-linear

Re: [R] nlme fixed effects specification

2007-05-04 Thread Douglas Bates
On 5/3/07, ivo welch [EMAIL PROTECTED] wrote: dear R experts: sorry, I have to ask this again. I know that the answer is in section 7.2 of S Programming, but I don't have the book (and I plan to buy the next edition---which I hope will be titled S/R programming ;-) ). I believe the

Re: [R] weight

2007-04-29 Thread Douglas Bates
On 4/28/07, John Kane [EMAIL PROTECTED] wrote: IIRC you have a yes/no smoking variable scored 1/2 ? It is possibly being read in as a factor not as an integer. try class(df$smoking.variable) to see . Good point. In general I would recommend using str(df) to check on the class or

Re: [R] Example of mcmcsamp() failing with lmer() output

2007-04-29 Thread Douglas Bates
On 4/27/07, Michael Kubovy [EMAIL PROTECTED] wrote: Hi, I would appreciate help with the following model 1= gunload - read.table(hh('datasets/gunload.dat'), header = T) gunload$method - factor(gunload$method, labels = c('new', 'old')) gunload$physique - factor(gunload$group, labels =

Re: [R] Converting list of data frame to data frame

2007-04-28 Thread Douglas Bates
On 4/28/07, Ajit Pawar [EMAIL PROTECTED] wrote: Greetings, This might be something very simple but a nice solution eludes me!! I have a function that I call within sapply that generates data frame in each call. Now when sapply returns me back the result - it's in the form of a

Re: [R] Matrix: how to re-use the symbolic Cholesky factorization?

2007-04-24 Thread Douglas Bates
On 4/24/07, Gardar Johannesson [EMAIL PROTECTED] wrote: I have been playing around with sparse matrices in the Matrix package, in particularly with the Cholesky factorization of matrices of class dsCMatrix. And BTW, what a fantastic package. My problem is that I have to carry out repeated

Re: [R] Two sample t.test, order of comparions

2007-04-18 Thread Douglas Bates
On 4/18/07, Helmut Schütz [EMAIL PROTECTED] wrote: Dear group members, I want to compare response variables (logAUC) of two groups (treatment Test, Reference) of a subset (period == 1) in dataframe resp (below): sequence subject period treatment AUC logAUC 1RT 1 1

Re: [R] erratic behavior of match()?

2007-04-18 Thread Douglas Bates
On 4/18/07, Bernhard Klingenberg [EMAIL PROTECTED] wrote: Consider the code: x - seq(0,1,0.2) y - seq(0,1,0.01) cbind(match(y,x),y) which, surprisingly, doesn't show a match at 0.6! (It gives correct matches at 0, 0.2, 0.4, 0.8 and 1, though) In addition, x[4]==y[61] yields FALSE.

Re: [R] Modelling Heteroscedastic Multilevel Models

2007-04-17 Thread Douglas Bates
May I suggest the Exam data from the mlmRev package as an example. If you wish to have a random effect for Sex by school you could write the model as lmer(test.result ~ homework + Sex + (Sex|school)) which gives correlated random effects for the overall achievement in schools and the

Re: [R] replicates in repeated ANOVA

2007-04-14 Thread Douglas Bates
On 4/13/07, Michael Stevens [EMAIL PROTECTED] wrote: Hi, I have sort of a newbie question. I've seriously put a lot of effort into how to handle simple replicates in a repeated ANOVA design, but haven't had much luck. I really liked reading Notes on the use of R for psychology experiments and

Re: [R] LME: internal workings of QR factorization

2007-04-12 Thread Douglas Bates
On 4/12/07, Izmirlian, Grant (NIH/NCI) [E] [EMAIL PROTECTED] wrote: Hi: I've been reading Computational Methods for Multilevel Modeling by Pinheiro and Bates, the idea of embedding the technique in my own c-level code. The basic idea is to rewrite the joint density in a form to mimic a

Re: [R] Reasons to Use R

2007-04-11 Thread Douglas Bates
On 4/10/07, Wensui Liu [EMAIL PROTECTED] wrote: Greg, As far as I understand, SAS is more efficient handling large data probably than S+/R. Do you have any idea why? SAS originated at a time when large data sets were stored on magnetic tape and the only reasonable way to process them was

Re: [R] negative variances

2007-04-11 Thread Douglas Bates
On 4/11/07, Tu Yu-Kang [EMAIL PROTECTED] wrote: Dear R experts, I had a question which may not be directly relevant to R but I will be grateful if you can give me some advices. I ran a two-level multilevel model for data with repeated measurements over time, i.e. level-1 the repeated

Re: [R] Help with pexp( )

2007-04-11 Thread Douglas Bates
On 4/11/07, Jeann S [EMAIL PROTECTED] wrote: Dear all, Sorry for bringing up an old issue: pexp(50, 0.5) [1] 1 In some cases, pexp() gives CDF=1. I read some discussion in 2002 saying it has been patched. However it's not working in R2.4.1Patched. Could anyone help me out? And

Re: [R] Why warnings using lmer-model with family=binomial

2007-04-11 Thread Douglas Bates
On 4/11/07, Åsa Granberg [EMAIL PROTECTED] wrote: Hi all! My question is why, and what I can do about that I sometimes, but not always, get warning-messages like nlminb returned message singular convergence (7) in: LMEopt(x = mer, value = cv) or IRLS iterations for PQL did not

Re: [R] Reasons to Use R

2007-04-11 Thread Douglas Bates
On 4/11/07, Robert Duval [EMAIL PROTECTED] wrote: So I guess my question is... Is there any hope of R being modified on its core in order to handle more graciously large datasets? (You've mentioned SAS and SPSS, I'd add Stata to the list). Or should we (the users of large datasets) expect

Re: [R] help with lmer,

2007-04-11 Thread Douglas Bates
On 4/11/07, Brendan Connors [EMAIL PROTECTED] wrote: Hi R-users: New to R and I am trying to run a GLM with random effects. I have 3 replicates ('Replicate) of counts of parasites ('nor.tot.lep') before and after an experiment ('In.Out'). When I run lmer I get the error messages (16 of

Re: [R] the numimum number of fixed factors lme package can deal with

2007-04-04 Thread Douglas Bates
does exist and in correct form. In addition, when the number of columns of dx is smaller than 200, the lme runs no prolem. Cheers Yongxiang Without a *reproducible* example we cannot be of any assistance. -Original Message- From: [EMAIL PROTECTED] on behalf of Douglas Bates

Re: [R] (sans objet)

2007-04-04 Thread Douglas Bates
On 4/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Is there any function argmax in R ? For example, if I have the vector x=c(1,4,15,7,6), max(x)=15. But I need a function f such that f(x)=3, 3 being the number where 15 is. which.max __

Re: [R] the numimum number of fixed factors lme package can deal with

2007-04-03 Thread Douglas Bates
On 4/3/07, Fang, Yongxiang [EMAIL PROTECTED] wrote: In my study, mixed effects model is required and the number of fixed effects is very large. When lme package is employed, a model error is displayed once the number of fixed factors in the formula reaches 200. Is this the maximum number of

Re: [R] lmer, CHOLMOD warning: matrix not positive definite

2007-04-03 Thread Douglas Bates
On 4/2/07, Seyed Reza Jafarzadeh [EMAIL PROTECTED] wrote: Hi, I am getting a warning message when I am fitting a generalized linear mixed model (m1.2 below). CHOLMOD warning: matrix not positive definite Error in objective(.par, ...) : Cholmod error `matrix not positive definite' at

Re: [R] R equivalent of S+SeqTrial?

2007-03-28 Thread Douglas Bates
On 3/28/07, Marc Schwartz [EMAIL PROTECTED] wrote: On Wed, 2007-03-28 at 02:42 -0700, francogrex wrote: Does anyone know of an R package that is equivalent of S+SeqTrial for analysis of clinical trials using group sequential methods? Thanks. I don't know that there are fully functional

Re: [R] Use of 'defineVar' and 'install' in .Call

2007-03-28 Thread Douglas Bates
I did read your second message about the problem symptoms disappearing but I thought that I might make a couple of suggestions about your code anyway. There are a number of helper functions declared in Rinternals.h such as ScalarReal, which is equivalent to your mkans. (Also ScalarInteger,

Re: [R] non-linear curve fitting

2007-03-22 Thread Douglas Bates
On 3/22/07, Hufkens Koen [EMAIL PROTECTED] wrote: Is there a means of getting an F-statistic (p-value) out of all of this. Because least-square criterion / r-square only tell me how good the fit is and not necessarily how solid this fit is. An F-statistic (p-value) would be nice... What

Re: [R] how to get lsmeans?

2007-03-22 Thread Douglas Bates
On 3/22/07, Muenchen, Robert A (Bob) [EMAIL PROTECTED] wrote: Perhaps I'm stating the obvious, but to increase the use of R in places where SAS SPSS dominate, it's important to make getting the same answers as easy as possible. That includes things like lsmeans and type III sums of squares.

Re: [R] Gaussian Adaptive Quadrature

2007-03-21 Thread Douglas Bates
On 3/21/07, Doran, Harold [EMAIL PROTECTED] wrote: The function integrate() uses AGQ. There are other functions for gaussian quadrature in the statmod() package that I really like. I think that integrate does adaptive quadrature but not adaptive Gaussian quadrature (which probably should have

Re: [R] error installing packages

2007-03-20 Thread Douglas Bates
On 3/7/07, Bricklemyer, Ross S [EMAIL PROTECTED] wrote: I was finally able to get R to 'configure', 'make', and 'install' on Mandriva 2007. Itried to install gnomeGUI and I received an error. See below. At what step do I make R a shared library? Where did I go wrong? At the configure

Re: [R] How does glm(family='binomial') deal with perfect sucess?

2007-03-20 Thread Douglas Bates
On 3/20/07, Mike Lawrence [EMAIL PROTECTED] wrote: Hi all, Trying to understand the logistic regression performed by glm (i.e. when family='binomial'), and I'm curious to know how it treats perfect success. That is, lets say I have the following summary data x=c(1,2,3,4,5,6)

Re: [R] augPred in lmer

2007-03-08 Thread Douglas Bates
On 3/8/07, Andrew Robinson [EMAIL PROTECTED] wrote: Hi Kyle, not yet! At least not as far as I know. Not as far as I know either. On Thu, Mar 08, 2007 at 03:08:19PM -0600, Roberts, J. Kyle wrote: I read the posts about augPred with lme, but does anyone know if there is a correlate for

Re: [R] expm()

2007-03-06 Thread Douglas Bates
On 3/6/07, Laura Hill [EMAIL PROTECTED] wrote: Can the expm function be used to calculate the exponential of a matrix where the matrix is multiplied by a vector in a data frame? I don't quite understand the question. The exponential of a matrix is only defined for square matrices. For

Re: [R] Off topic:Spam on R-help increase?

2007-03-06 Thread Douglas Bates
On 3/6/07, Bert Gunter [EMAIL PROTECTED] wrote: In the past 2 days I have seen a large increase of spam getting into R-help. Are others experiencing this problem? If so, has there been some change to the spam filters on the R-servers? If not, is the problem on my end? There has indeed been

Re: [R] Off topic:Spam on R-help increase?

2007-03-06 Thread Douglas Bates
On 3/6/07, Peter Dalgaard [EMAIL PROTECTED] wrote: Bert Gunter wrote: Folks: In the past 2 days I have seen a large increase of spam getting into R-help. Are others experiencing this problem? If so, has there been some change to the spam filters on the R-servers? If not, is the problem

Re: [R] Mitools and lmer

2007-03-03 Thread Douglas Bates
On 3/2/07, Beth Gifford [EMAIL PROTECTED] wrote: Hey there I am estimating a multilevel model using lmer. I have 5 imputed datasets so I am using mitools to pool the estimates from the 5 datasets. Everything seems to work until I try to use MIcombine to produced pooled estimates. Does

Re: [R] LME without convergence

2007-02-28 Thread Douglas Bates
On 2/28/07, Ralf Sommerfeld [EMAIL PROTECTED] wrote: Dear R-help list readers, I am fitting a mixed model using the lme function (R V 2.3.1 for Windows). This is an example: dep-c(25,40,33.33,60,70.83,72,71.43,50,40,53.33,64,54.17,60,53.57) yes-c(0,1,2,3,4,5,6,0,1,2,3,4,5,6)

Re: [R] compiling issues with Mandriva Linux 2007 Discovery

2007-02-27 Thread Douglas Bates
On 2/27/07, Bricklemyer, Ross S [EMAIL PROTECTED] wrote: All, I am a new user to Linux but I am familiar with R. I have previously used and installed R on a Windows platform without problems. I recently set up a dual boot system (XP_64, Mandriva) to run R on a Linux platform in order to

Re: [R] problem with weights on lmer function

2007-02-24 Thread Douglas Bates
On 2/23/07, Ronaldo Reis Junior [EMAIL PROTECTED] wrote: Em Quinta 22 Fevereiro 2007 20:36, Andrew Robinson escreveu: Hi Ronaldo, I suggest that you send us a small, well-documented, code example that we can reproduce. It certainly looks as though there is a problem, but given this

Re: [R] Confindence interval for Levenberg-Marquardt fit

2007-02-21 Thread Douglas Bates
On 2/21/07, joerg van den hoff [EMAIL PROTECTED] wrote: On Wed, Feb 21, 2007 at 11:09:52AM +, Prof Brian Ripley wrote: Well, the algorithm used does not affect the confidence interval (provided it works correctly), but what is nls.ml (presumably in some package you have not mentioned)

Re: [R] Start and Restart R over SSH

2007-02-19 Thread Douglas Bates
On 2/19/07, Nils Höller [EMAIL PROTECTED] wrote: Hi, I have some big calculations in R to be done. Since I can use R on a server with ssh, i was wondering if I can reopen a R Shell after exiting ssh. I don't want to use the batch mode and nohup doesn't work. I want to use something like

Re: [R] something missing in summary()

2007-02-16 Thread Douglas Bates
On 2/16/07, Jari Oksanen [EMAIL PROTECTED] wrote: Gerard Smits g_smits at verizon.net Fri Feb 16 00:46:09 CET 2007: just noticed that two key pieces of information are not given by the summary() command: N and SD. we are given the N missing, but not the converse. I know these summary

Re: [R] nested model: lme, aov and LSMeans

2007-02-14 Thread Douglas Bates
On 2/13/07, shirley zhang [EMAIL PROTECTED] wrote: I'm working with a nested model (mixed). I have four factors: Patients, Tissue, sex, and tissue_stage. Totally I have 10 patients, for each patient, there are 2 tissues (Cancer vs. Normal). I think Tissue and sex are fixed. Patient is

Re: [R] error using user-defined link function with mixed models (LMER)

2007-02-11 Thread Douglas Bates
/07, Douglas Bates [EMAIL PROTECTED] wrote: On 2/10/07, Jessi Brown [EMAIL PROTECTED] wrote: Greetings, everyone. I've been trying to analyze bird nest survival data using generalized linear mixed models (because we documented several consecutive nesting attempts by the same individuals

Re: [R] deleting row when any col is.na

2007-02-11 Thread Douglas Bates
On 2/11/07, Milton Cezar Ribeiro [EMAIL PROTECTED] wrote: How can I delete rows from a data.frame where almost one column is.na()? The na.omit function does this. set.seed(123454321) x - matrix(rnorm(50, mean = 1), ncol = 5) x[x 0] - NA df - data.frame(x) df X1 X2

Re: [R] error using user-defined link function with mixed models (LMER)

2007-02-11 Thread Douglas Bates
of the example on the family help page. ken Douglas Bates a écrit : Look at the 'link' component of the two lists. In the binomial family object the link component is a character vector of link 1. In your logexposure family object it is a list of length 5. On 2/10/07, Jessi Brown jessilbrown

Re: [R] problem with Matrix package

2007-02-11 Thread Douglas Bates
On 2/11/07, Andrew Gelman [EMAIL PROTECTED] wrote: I decided to update my packages and then had a problem with loading the Matrix package http://cran.at.r-project.org/bin/windows/contrib/2.4/Matrix_0.9975-9.zip This is what happened when I tried to load it in: library(Matrix) Error in

Re: [R] problem with Matrix package

2007-02-11 Thread Douglas Bates
Douglas Bates wrote: On 2/11/07, Andrew Gelman [EMAIL PROTECTED] wrote: I decided to update my packages and then had a problem with loading the Matrix package http://cran.at.r-project.org/bin/windows/contrib/2.4/Matrix_0.9975-9.zip This is what happened when I tried to load it in: library

Re: [R] error using user-defined link function with mixed models (LMER)

2007-02-10 Thread Douglas Bates
On 2/10/07, Jessi Brown [EMAIL PROTECTED] wrote: Greetings, everyone. I've been trying to analyze bird nest survival data using generalized linear mixed models (because we documented several consecutive nesting attempts by the same individuals; i.e. repeated measures data) and have been unable

Re: [R] Timings of function execution in R [was Re: R in Industry]

2007-02-09 Thread Douglas Bates
On 2/9/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: The other reason why pmin/pmax are preferable to your functions is that they are fully generic. It is not easy to write C code which takes into account that , [, [- and is.na are all generic. That is not to say that it is not worth having

Re: [R] TA-Lib and R

2007-02-09 Thread Douglas Bates
On 2/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Does someone know how to use TA-Lib in R (http://ta-lib.org/)? Simple. Read the documentation for TA-Lib, then read the manual Writing R Extensions, then write and test the necessary interface routines.

Re: [R] NEWBIE: @BOOK help?

2007-02-08 Thread Douglas Bates
On 2/8/07, Zembower, Kevin [EMAIL PROTECTED] wrote: In Henric's recent post, he included this output: @BOOK{R:Harrell:2001, AUTHOR = {Frank E. Harrell}, TITLE = {Regression Modeling Strategies, with Applications to Linear Models, Survival Analysis and Logistic

Re: [R] R vs Matlab {Re: R in Industry}

2007-02-08 Thread Douglas Bates
On 2/8/07, Manuel Morales [EMAIL PROTECTED] wrote: On Thu, 2007-02-08 at 16:53 +0100, Martin Maechler wrote: Albr == Albrecht, Dr Stefan (AZ Private Equity Partner) [EMAIL PROTECTED] on Thu, 8 Feb 2007 16:38:18 +0100 writes: snip Albr And, I was very astonished to realise,

[R] Timings of function execution in R [was Re: R in Industry]

2007-02-08 Thread Douglas Bates
On 2/8/07, Albrecht, Dr. Stefan (AZ Private Equity Partner) [EMAIL PROTECTED] wrote: Dear all, Thanks a lot for your comments. I very well agree with you that writing efficient code is about optimisation. The most important rules I know would be: - vectorization - pre-definition of vectors,

Re: [R] Singular Gradient

2007-02-07 Thread Douglas Bates
On 2/7/07, This Wiederkehr [EMAIL PROTECTED] wrote: I tried to fit data with the following function: fit-nls(y~ Is*(1-exp(-l*x))+Iph,start=list(Is=-2e-5,l=2.3,Iph=-0.3 ),control=list(maxiter=500,minFactor=1/1,tol=10e-05),trace=TRUE) But I get only a singular Gradient warning... Did you

Re: [R] precision of zero in R

2007-02-03 Thread Douglas Bates
On 2/3/07, pu chen [EMAIL PROTECTED] wrote: hello, I have to calculate the determinants of near singular matrices. Presently R just stop at the precision of 2.16 e-16. I'm not sure what you mean by that. Can you explain how you determined that number, perhaps including some code? It

Re: [R] memory-efficient column aggregation of a sparse matrix

2007-02-01 Thread Douglas Bates
On 1/31/07, Jon Stearley [EMAIL PROTECTED] wrote: I need to sum the columns of a sparse matrix according to a factor - ie given a sparse matrix X and a factor fac of length ncol(X), sum the elements by column factors and return the sparse matrix Y of size nrow(X) by nlevels(f). The appended

Re: [R] Fwd: how to handle a longitudinal data

2007-01-27 Thread Douglas Bates
On 1/27/07, gallon li [EMAIL PROTECTED] wrote: actually there are too many subjects. is there a way that i can make a table such that it can tell me the frequency of number of observations? Like 3 4 5 30 40 60 which means there are 30 subjects which each has 3 obs., 40

[R] [R-pkgs] New version of lme4 and new mailing list R-SIG-mixed-models

2007-01-25 Thread Douglas Bates
Version 0.9975-11 of the lme4 package has been uploaded to CRAN. The source package should be available on the mirrors in a day or two and binary packages should follow soon after. There are several changes in this release of the package. The most important is the availability of a development

Re: [R] How to specify arguments in lme() ?

2007-01-18 Thread Douglas Bates
On 1/18/07, w jj [EMAIL PROTECTED] wrote: I have a question about the function lme() in R. I have a 2*2*3 layout with some missing data (labelled as *). These 3 factors are labelled as A,B,C, the response is Score. The layout is as follows:- A B C

Re: [R] mcmcsamp and variance ratios

2007-01-04 Thread Douglas Bates
On 1/3/07, Martin Henry H. Stevens [EMAIL PROTECTED] wrote: Hi folks, I have assumed that ratios of variance components (Fst and Qst in population genetics) could be estimated using the output of mcmcsamp (the series on mcmc sample estimates of variance components). What I have started to do

Re: [R] A question on lmer() function

2006-12-19 Thread Douglas Bates
On 12/17/06, Guojing Yang [EMAIL PROTECTED] wrote: Dear R users, We have encountered a slight problem when using the lmer() function: 1. Data description: 11 locations; Nt: monthly mosquito population density from 1994-2005 in each location. 2. Question: to examine the degree of

  1   2   3   4   5   6   7   8   >