Displaying 8 results from an estimated 8 matches for "stephenjbarr".
2009 May 13
4
matching period with perl regular expression
Hello,
I have several strings where I am trying to eliminate the period and
everything after the period, using a regular expression. However, I am
having trouble getting this to work.
> x = "wa.w"
> gsub(x, "\..*", "", perl=TRUE)
[1] ""
Warning messages:
1: '\.' is an unrecognized escape in a character string
2: unrecognized escape removed
2009 Dec 23
2
loading data into ZOO
Hello,
I have a simple question. I am trying to load data into a zoo object. I have
the data in CSV format as follows
SYMBOL DATE TIME PRICE
XX YYYYMMDD HH:MM:SS n.nn
and there are multiple symbols in this one data frame.
My question is, do I need to merge DATE and TIME before loading them or can
I specify multiple index.column or index.name fields?
2010 Mar 10
1
Trouble with plm in Ubuntu 9
Hello,
Apologies in advance if this is a stupid question. I am running R on Ubuntu
9.
R version 2.9.2 (2009-08-24)
I am trying to work with plm. I think the library is installed, as I can do
> library(plm)
Loading required package: kinship
Loading required package: survival
Loading required package: splines
Loading required package: nlme
Loading required package: lattice
[1] "kinship
2009 Mar 04
1
dividing ts objects of different frequencies
Hello,
I have two time series objects, 1 is yearly (population) and the other is
quarterly (bankruptcy statistics). I would like to produce a quarterly time
series object that consists of bankruptcy/population. Is there a pre-built
function to intelligently divide these time series:
br.ts = ts(data=br.df[,-1], frequency = 4, start=c(2001,1), end=c(2008,2))
distPop.ts = ts(data=distPop.df[,-1],
2009 Jun 12
1
xtable for plm objects
Hello,
I am trying to use Sweave to write up a report, and I have used the
plm package to do some panel models. I am trying to use xtable to make
a nice table for my regression objects (returned by the plm command),
but I am getting the error:
Error in UseMethod("xtable") : no applicable method for "xtable"
It seems like I would want to have xtable treat plm objects exactly
2009 Jun 16
1
turning off escape sequences for a string
Hello,
I would like to create a matrix with one of the columns named
$\delta$. I have also created columns $\beta_1$ , $\beta_2$, etc.
However, it seems like \d is an escape sequence which gets
automatically removed. (Using these names such that they work right in
xtable -> latex)
colnames(simpleReg.mat) <- c("$\beta_1$","$SE(\beta_1)$", "$\beta_2$",
2009 May 19
1
panel question (plm)
Hello,
I am working on a data set (already as a plm.data object) located
here: http://econsteve.com/arch/plmWithDensity.Robj
With the following R session:
> library(plm)
...
>load("plmWithDensity.Robj")
>model <- plm(RATE ~ density08, data=plmWithDensity)
Error: subscript out of bounds
I am not understanding the "subscript out of bounds" error, as this is
a
2009 May 08
1
plm: plm.data vs pdata.frame
Hello,
I am trying to use the plm package for panel econometrics. I am just
trying to get started and load my data. It seems from most of the
sample documentation that I need to use the pdata.frame function to
get my data loaded. However, even after installing the "plm" package,
my R installation cannot find the function. I am trying to follow the
example in plmEN.pdf (