[R] lognorm

2005-01-07 Thread Frederic renaud
Hi!
I 've a problem to have a lognorm distribution with
mean=1 and var (or sigma)=1.

rlnorm(1000,0,0)
rlnorm(1000,1,1)
rlnorm(1000,0,1)
 ?

Can you help me?

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] count element in column

2005-01-05 Thread Frederic renaud
Hi,
I 've a matrix n*1 (thus a column) and I would like to
count the number of negative element inside.
Can you help me?
Thanks!

eg:
 res[,1]= 1
  -3
  -1

How obtain the number 2 (number of negative-element)?

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Un peu d'aide

2004-12-26 Thread Frederic renaud
Bonjour,
Je voudrais faire un petit programme sous R dans
lequel je ferais intervenir des parametres que
j'initialiserais dans R directement ou dans un fichier
txt(des naturels, reels et caracteres). N'auriez vous
pas des programmes deja fait qui reprennent ces
techniques? 
De plus, je voudrais pouvoir travailler avec la
distribution exp (rexp) de parametres: moyenne=1 et
variance=1. J'ai un petit prob pour introduire la
variance.
D'avance Merci
Fred

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] vector

2004-12-26 Thread Frederic renaud
Hi!
Can you help me? I would like to make a vector from p
pre-determined vector. The parameter p can change.
I've try with ?c with unsuccess! An idee?

Sorry for my english!
Thanks
Fred

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html