Hi,

I have given the code below by which you can get the column names for the
output. I am using the data from the package in the example below.

The *eventstudies* package takes the *'events' *from the data frame which
is '*SplitDates*' in our case. The first column of *SplitDates* represents
the column names for the output. The other thing you need to do is to match
events only which are converted to event frame, so you have to match, only
ones which has outcomes as '*success*'.

---------------------------------
*library(eventstudies)*
*data(StockPricesReturns)*
*data(SplitDates)*
*
*
*result <- phys2eventtime(z=StockPriceReturns, events=SplitDates,width=5)*
*# Getting column names for event frame*
*c.names <- SplitDates[which(result$outcomes=="success"),1]*
*colnames(result$z.e) <- c.names*
*----------------------------------*
*
*
Regards
Vikram Bahure


On Tue, Jun 18, 2013 at 4:37 PM, iza.ch1 <[email protected]> wrote:

> Hi!
>
> I have a question to you. I am conducting event studies by using the
> package "eventstudies". I have the problem with transforming the list of
> results "es". I receive as column names only the numbers 1 2 3 4 etc.
> Instead I need to have as the column name the company name for which this
> returns were presented in "es". Does someone know the way to achieve it?
>
> Thank you in advance.
>
> Iza
>
> _______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.
>

        [[alternative HTML version deleted]]

_______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.

Reply via email to