| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Re: [s-news] S-News Daily Digest V2 #1954 |
| From: | Doug Bolgiano <dougb@psbcresearch.org> |
| Date: | Fri, 16 Jan 2009 09:51:25 -0800 |
| In-reply-to: | <20090115112005.D3D7612427E@smtp.biostat.wustl.edu> |
| References: | <20090115112005.D3D7612427E@smtp.biostat.wustl.edu> |
|
extracting components from a list of lists I use tapply with the acf function (lag =3) and the subject index of a data frame to calculate autocorrelations for a variable measured repeatedly on each subject (n = 180). The result is a list of lists (which are the output of the acf function), one for each subject. I want to extract the $acf component from each subject's list and form a matrix where rows index subjects and columns index lags. I have tried using the subscript operators [] and [[ ]] to extract the acf componets. Do I have to resort to looping through the subject lists and extracting the acf component from each list individually or is there a more efficient way to do this? Doug Bolgiano Puget Sound Blood Center Seattle, WA 98104 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Resample variances part 2, Jim Daley |
|---|---|
| Next by Date: | Re: [s-news] S-News Daily Digest V2 #1954, David L Lorenz |
| Previous by Thread: | Resample variances part 2, Jim Daley |
| Next by Thread: | Re: [s-news] S-News Daily Digest V2 #1954, David L Lorenz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |