rafrossignol raphaelrossignolmathupsudfr hello prof brian ripley wrote think referring application residuals armap q fit boxtest says easy edit code want use different degrees freedom also new r seems still something confusing boxtest tsdiagarima indeed help tsdiag says methods arima structts use ljungbox version portmanteau test could expect degrees freedom hpq used look tsdiagarima shows uses boxtest lags h1goflag degrees freedom equal h hpq think mistake tsdiagarima experimental theoretical reason supporting choice best regards view message context httpwwwnabblecomboxtestdegreesoffreedomtp17277964p18888923html sent r help mailing list archive nabblecom ______________________________________________ rhelprprojectorg mailing list httpsstatethzchmailmanlistinforhelp please read posting guide httpwwwrprojectorgpostingguidehtml provide commented minimal selfcontained reproducible code fri 08 aug 2008 024605 0700 r boxtest degrees freedom