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
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:
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
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.
__
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
5 matches
Mail list logo