Re: [R] Extend my code to run several data at once.

2011-07-28 Thread Daniel Malter
No, I may not. If you want somebody to check out your code, please adhere to the posting guide (which you should in all your posts), which requires you to provide minimally self-contained code (i.e., an example that we can directly copy-paste to R-prompt). But I will give you an example: Your

Re: [R] Extend my code to run several data at once.

2011-07-27 Thread EdBo
Hi Daniel, I am still failing to do that? May you look at my look. It is calculating the estimates for one row. How do I incorporate the other data that has all other columns? Thanks Ed Sent from BlackBerry® wireless device -Original Message- From: Daniel Malter [via R]

[R] Extend my code to run several data at once.

2011-07-24 Thread EdBo
Hi I have a code that calculate maximisation using optimx and it is working just fine. I want to extend the code to run several colomns of R_j where j runs from 1 to 200. If I am to run the code in its current state, it means I will have to run it 200 times manually. May you help me adjust it to

Re: [R] Extend my code to run several data at once.

2011-07-23 Thread Daniel Malter
If you just want to apply the function over successive columns of a data frame use apply(name.of.data.frame, 2 , llik) Daniel EdBo wrote: Hi I have a code that calculate maximisation using optimx and it is working just fine. I want to extend the code to run several colomns of R_j where