Displaying 5 results from an estimated 5 matches for "columms".
Did you mean:
colums
2006 Jul 27
2
Vector extracted from a matrix. How can I specify dimensions in as.matrix?
Transpose vector extracted from a matrix
Hello,
I am doing a recursive analysis that uses every line (vector) of a matrix in
a loop. In the model, I need to transpose those vectors that are extracted
from a matrix.
Using simple vectors (no matrix involved) the transpose function works fine:
simplevector <-matrix(1:3,3,1)
tsimplevector <-t(simplevector) #transposed
dim(simplevector)
2004 Oct 03
2
Computing and testing transition probabilities?
...83, 82, 83),
f= sample(1:3, 10, replace=T)
)
print(D)
What I'd like to do is locate situations where a firm is observed for
two consecutive years, and put together conditional probabilities of
state transition.
Expressed as counts, putting time $t$ as the rows and time $t+1$ as
the columms, I'd like to get the table:
1 2 3
1 1
2 1
3 1 1 1
For example, this says that we only observe one situation (in this
data) where f=1 and then we got to see the next year, and in that year
f was 3. So we have a 100% probability of going from 1 -> 3. In the
case...
2011 Oct 27
2
creating vector os zeros for simulations (beginner's question)
Dear R helpers,
I know this is a simple task, but I'm new to R and I'm still havind difficulties with the language.
I want to create 30 vectors to be used in a simulation, each with 1 columm and 5 lines, of random numbers N(0,1).
What I tried was this:
N=150
u2<-rep(1:150,0)
u2<-list(matrix(0,5))
u2
for(i in 1:N)
{
u2[i]<-rnorm(5)
}
u2
### also tried this:
N=150
2005 May 24
4
Table Help
Reply to sender Reply to all Reply to folder Forward Move/Copy Delete
Read previous item Read next item Get help information on the current
window
From: McMurtry, Benjamin G.
To: 'r-help-request at stat.math.ethz.ch'
Cc:
Subject: Table Help
Sent: 5/24/2005 4:33 PM
Importance: Normal
I have a very large table that I want to add some of the certain rows.
The table is
2004 Dec 07
4
Importing vector graphics into R
Dear R users,
I know of the possibility to import bitmaps via the nice pixmap library.
But if you later on create a PDF it is somewhat disappointing to
have such graphics bitmapped. Is there a trick (via maps?) to import a
vector graphic and have them plotted onto a graph? My searching attempts
in the searchable r-help archive did not seem to result in anything
useful...
Cheers,
hinrich