[R] PGMM help - Strange Errors when Fitting Models

2010-03-13 Thread nowfocus
Hello, I've been trying to fit Arrellano-Bond model with pgmm but I am getting very strange errors. I've looked around and found no reference to them. I've specified the model in dozens of different ways, and each seems to give me a new kind of error. This leads me to believe this has to do wi

Re: [R] Vertical subtraction in dataframes

2010-03-13 Thread nowfocus
It depends how you stored your missing values. If they are listed as NAs then mydataframe$calib <- Count - is.na(stain)*Count or mydataframe$calib <- Count*(1 - is.na(stain)) The trick is the boolean 'TRUE' equals 1 in numeric calculations. -- View this message in context: http://n4.nabble.c