Re: [R] calculating the mean of a random matrix (by row) and some general questions

2011-07-19 Thread RichardLang
Thanks for your advice! I found another method to solve my problem (on page 20 of the manual =) ). Here's my code # Set n and m to whatever you want n = 25 m = 10 # Build a random vector (here with exponential distribution) with lenght of n*m x = rexp(n*m,1) # Set up a factor in order to group

[R] calculating the mean of a random matrix (by row) and some general questions

2011-07-19 Thread RichardLang
Hi everyone! I'm trying to teach myself R in order to do some data analysis. I'm a mathematics student and (only) familiar with matlab and latex. I'm working trough the "official" introduction to R at the moment, while simultaneously solving some exercises I found in the web. Before I post my (pro

Re: [R] Noobie question, regression across levels

2008-12-16 Thread RichardLang
regression). What is the best way to exclude factors of insufficient size? Can I do it inside the lmList function? I've read the requisite help files etc. and two hours later am still confused. Thanks in advance, Allen Ben Bolker wrote: > > > > RichardLang wrote: >> >&