Re: [R] Print plot to pdf, jpg or any other format when using scatter3d error

2011-01-04 Thread Jurica Seva
Thank you, Duncan, it works now with rgl.snapshot (i did have to upgrade to 2.12.1). Is there any way to manipulate the size of the created image? The created plots are a bit small (256*256) Thank you for your help once again :) Best, Jurica On Tue, Jan 4, 2011 at 8:31 AM, Duncan Murdoch

[R] Error in M[, 1] : incorrect number of dimensions when trying to plot hexbin

2011-01-04 Thread Jurica Seva
Hello again, I am trying to plot out activity regions the user did on the screen via plotting a hexbin. I have 20 users whose information i want to plot out and it stops in the user 16 with the message Error in M[, 1] : incorrect number of dimensions. Any advice would be appreciated as i

[R] Print plot to pdf, jpg or any other format when using scatter3d error

2011-01-03 Thread Jurica Seva
Hi, I have been trying to output my graphs to a file (jpeg, pdf, ps, it doesnt matter) but i cant seem to be able to get it to output. I tried a few things but none of them worked and am lost as what to do now. I am using the scatter3d function, and it prints out the graphs on tot he screen

[R] NeweyWest

2010-06-27 Thread Jurica Brajković
I want to calculate Newey West robust standard error using NeweyWest. Comparing the results to what I get in STATA, in order to get the same results in I need to specify prewhite=0. Can someone explain what this prewhite command means? Thanks [[alternative HTML version deleted]]

Re: [R] GARCH SIMULATION

2009-03-12 Thread Jurica
You should try installing fGarch package. Then you can simulate various garch models using garchsim command. Hope it help. jurica SUMANTA BASAK-4 wrote: Hi All, I,m trying to do a GARCH simulation in R 2.3.0 release in Windows XP. I've seen garchsim function but that is for garch (1,1

[R] maximum likelihood

2008-09-26 Thread Jurica Brajković
) return(-logl) } out - optim(c(1,1,1,1,1,1),fn=mle, method = BFGS) Unfortunately I get the error that “Error in optim(c(1, 1, 1, 1, 1, 1), fn = mle, method = BFGS) : initial value in 'vmmin' is not finite” Can someone help. Thanks, Jurica Brajkovic

[R] Maximum likelihood estimation

2008-08-12 Thread Jurica Brajković
= L-BFGS-B, lower = c(0, -Inf, -Inf), upper = c(Inf, Inf, Inf)) The result I get is: Error in optim(c(0, 0, 0), mle, method = L-BFGS-B, lower = c(0, -Inf,:L-BFGS-B needs finite values of 'fn' Can somebody spot the mistake? Many thanks, Jurica Brajkovic