I conducted an event study in R for multiple firms having different event dates. However, i am unable to print the results in a loop. This is the code i used, if anyone has an idea that can help me print the results in a loop please kindly share. Thank you.

a = list()

for (i in 1:NROW(trial)) {

firm =loop[i,1]

event.date =loop[i,2]

index =loop[i,3]

a[[i]] =

evReturn(y=trial, firm = firm, event.date=event.date, y.date="date",

index= index, event.win = 5, est.win= 250, digits=4)

print (a[[i]]$result)

}

More Tchuiendem Nelly Joel's questions See All
Similar questions and discussions