Hello,
Inline.
Em 16-10-2012 16:22, Balqis escreveu:
well that function is the one I created, manipulating pargev from evir
package. maybe this is where I have to check I presume.
Maybe yes, we can't tell.
for the 50k,the more the robust perhaps?
Yes, the more the merrier but if you want
Hello,
Your code doesn't work, which libraries are you using? There are several
with function rgev.
And pargevn() also doesn't exist. Nor does the matrix/df inP.
(And, for reproducible example there's no need to replicate 50K times...)
Rui Barradas
Em 16-10-2012 13:41, Balqis escreveu:
Ok he
Ok here's the lines of codes:
sIr=replicate(5,ts(arima.sim(list(ar=0),n=150,innov=rgev(150,xi=0.2,
mu=inP[1,5],sigma=inP[1,4]),start.innov=rgev(150,xi=0.2,
mu=inP[1,5],sigma=inP[1,4]
sIrr=data.frame(cbind(sIr))
EsIpr=sapply(sIrr[1:100,1:2],function(m) pargevn(lmom.ub(m)))
kIpr=EsIpr
#[1] 165.406
#$X19998.alpha
#[1] 215.114
#To extract xi:
sapply(list1,`[`,1)
A.K>
- Original Message -
From: Balqis
To: r-help@r-project.org
Cc:
Sent: Tuesday, October 16, 2012 7:17 AM
Subject: [R] how to extract from list
Hi all,
I have a list of 2 data, and the list loo
Maybe something along the following lines?
m <- rep(list(rnorm(10)),3) # dummy data
data <- c()
for (a in 1:length(m)) {
data[a] <- m[[a]][1] }
Muhammad
On Tue, Oct 16, 2012 at 1:17 PM, Balqis wrote:
> Hi all,
>
> I have a list of 2 data, and the list look like below. I wonder what is
> t
Hello,
Try the following.
lapply(lst, `[[`, 'kappa')
Also, please post a data example using ?dput, in case of lists it's
difficult for us to reproduce what you've posted.
Hope this helps,
Rui Barradas
Em 16-10-2012 12:17, Balqis escreveu:
Hi all,
I have a list of 2 data, and the list
Hi all,
I have a list of 2 data, and the list look like below. I wonder what is
the simplest way to extract 'kappa' value (or 'xi' or 'alpha' for the
matter) from each of the data. How can I simply code it without having to
change the list to a dataframe first? Many thanks!
$X19997
7 matches
Mail list logo