[R] Panel data with binary dependent variable

2010-05-08 Thread Abiel Reinhart
Is it possible to do regressions in R using a panel data set with a binary dependent variable? I am familiar with using glm for logit and probit and plm for panel data, but am not sure how to combine the two. Are there any existing code examples? Thank you. Abiel

[R] Efficient calculation of matrix cumulative standard deviation

2010-04-29 Thread Abiel Reinhart
I am trying to calculate the cumulative standard deviation of a matrix. I want a function that accepts a matrix and returns a matrix of the same size where output cell (i,j) is set to the standard deviation of input column j between rows 1 and i. NAs should be ignored, unless cell (i,j) of the inpu

[R] Convert text string to object pointer

2008-08-14 Thread Abiel Reinhart
es are listed in an XML file, with each set of attributes having a key which refers to the name of an object in R. Thank you, -- Abiel Reinhart email: [EMAIL PROTECTED] cell: 541-514-1115 [[alternative HTML version deleted]] __ R-help@r-project

[R] Aggregating zoo object with NAs in multiple column

2008-07-23 Thread Abiel Reinhart
I would like to run an aggregation on a zoo object that has multiple series in it, with one of more series having NA values. The problem is that by default the aggregate function will produce an NA value in each aggregated period that contains an NA. For instance, if I run aggregate(x, as.yearmon(i