Do it in 2 steps:

z <- as.list( coef(am)[1:am$arma[2] + am$arma[1]])
names(z) <- paste("ma",seq_along(z), sep="")

-- Bert

On Mon, Nov 14, 2011 at 10:40 AM, Kevin Burton <rkevinbur...@charter.net>wrote:

> I can get an array of strings for the data that I want using 'paste()' as
> follows:
>
>
>
> paste('ma', 1:am$arma[2], '=', coef(am)[1:am$arma[2] + am$arma[1]], sep='')
>
>
>
> This results in a vector of strings like:
>
>
>
> [1] "ma1=1.17760133668255"  "ma2=0.649795570407939" "ma3=0.329456750858276"
>
>
>
> What I would like is
>
>
>
> fixed.pars <-
> list(ma1=1.17760133668255,ma2=0.649795570407939,ma3=0.329456750858276)
>
>
>
> Is there an 'R' guru that would be willing to suggest a good way of doing
> this?
>
>
>
> Thank you.
>
>
>
> Kevin
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to