Re: [R] Autocorrelation values? How to extract?

2012-01-09 Thread dnz.marcio
Hi Anna, I think you use acf() function to calculate the variable autocorrelation. I'd do: ac - acf(y, lag.max = 100)$acf Here, you use $acf, then you can extract the values only. Best regards, Márcio Diniz PhD Student IME - Mathematical and Statistics Institute USP - University - São Paulo

[R] How can I stack two matrices?

2012-01-09 Thread dnz.marcio
Hi, I'd like to stack two matrices. How can I do it without be column by column? Best regards, Márcio Diniz PhD Student IME - Mathematical and Statistics Institutee USP - University of São Paulo -- View this message in context:

Re: [R] How can I stack two matrices?

2012-01-09 Thread dnz.marcio
Thanks, Jorge! -- View this message in context: http://r.789695.n4.nabble.com/How-can-I-stack-two-matrices-tp4278614p4278855.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] optimize()

2011-12-13 Thread dnz.marcio
Wow...it's so simple! I have specified the variable times. Thank you so much, Ben! -- View this message in context: http://r.789695.n4.nabble.com/optimize-tp4173920p4192278.html Sent from the R help mailing list archive at Nabble.com. __

[R] optimize()

2011-12-08 Thread dnz.marcio
Hi! I have a difficulty in the use of function optimize(). Could you help me? I want to maximize this function: # Logaritmo da distribuição condicional de alpha[i] lp_alphai - function(alphai, i, beta, tau, N){ t1 - (N[i+1] - N[i])*log(alphai) t2 - - (N[i+1] - N[i])*alphai*log(beta[i]) t3