s-news
[Top] [All Lists]

Problem with matrix

To: <s-news@lists.biostat.wustl.edu>
Subject: Problem with matrix
From: "Saadi, Samir" <Saadi@telfer.uottawa.ca>
Date: Fri, 4 Apr 2008 08:06:01 -0400
References: <20080318102725.aa8924c5d28ca71e2a043bb294e795eb.c614248f21.wbe@email.secureserver.net>
Thread-index: AciJHR0jIrzfCIZSTZCHS9qVl/XHgQNLyKZc
Thread-topic: Problem with matrix
Hello s-plus users:
 

Below is the problem I met after running  three commands in sequence. It says "Unable to obtain requested dynamic memory ". What am I doing wrong?

 

The following three commands are used to generate one simulated sample (a matrix of 2283 rows and 10 columns)

Run : VAsia10.sim=array(0, c(2283,10))     (Implementing this line generates a matrix with 2283 rows and 10 columns, each element is set initial value 0)

Run: tmp=simulate(VAsia10.dvec, n=2283)   ( This is used to simulate 10 variable time series of length 2283. the following is the summary result for tmp

 

summary(tmp)
    Length Class    Mode
 et  22830       numeric
V.t 228300       numeric

Run: VAsia10.sim=matrix(tmp, byrow=F, nrow=2283, ncol=10) (transform the simulated series (tmp) into a matrix defined above in the first command as VAsia10.sim. Implementing this line however displays the error: Problem: Unable to obtain requested dynamic memory

<Prev in Thread] Current Thread [Next in Thread>