25.12.2012 Views

Dispense

Dispense

Dispense

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

226 CAPITOLO 4. ANALISI E PREVISIONE DI SERIE STORICHE<br />

4.4.2 Implementazione con R<br />

Anticipando l’uso del comando lm che esegue la regressione lineare multila, descriviamo<br />

l’implementazione con R di quanto ora spiegato. Iniziamo col modello AR(1)<br />

xk = a1xk 1 + b + "k:<br />

Dato il vettore x di lunghezza n, si devono costruire due vettori di lunghezza n 1, ovvero<br />

x0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!