Re: [R] How can I generate this numbers

2006-10-03 Thread Ricardo Rios
The model is http://www.geocities.com/ricardo_rios_sv/doc/model.pdf but it is a neural networks , excuse me it is not statistical model, however it is a nonparametric model, does somebody know this model? I'm looking for information about this model but I didn't found information about it model.

Re: [R] How can I generate this numbers

2006-10-02 Thread roger koenker
Try: > rsimplex <- function(n){ u <- diff(sort(runif(n))) c(u,1-sum(u)) } On Oct 2, 2006, at 5:43 PM, Rolf Turner wrote: > Ricardo Rios wrote: > >> Hi Rolf Turner, I have a statistical model, it model need this >> numbers for calculate the probability. This numbers must be random. >> >> For ex

Re: [R] How can I generate this numbers

2006-10-02 Thread Ben Bolker
Ricardo Rios gmail.com> writes: > > Hi Rolf Turner, I have a statistical model, it model need this > numbers for calculate the probability. This numbers must be random. > > For example I need that > >magicfunction(3) > >[1] 0.3152460 0.5231614 0.1615926 > >magicfunction(3) > >[1] 0.6147933 0.

Re: [R] How can I generate this numbers

2006-10-02 Thread Rolf Turner
Ricardo Rios wrote: > Hi Rolf Turner, I have a statistical model, it model need this > numbers for calculate the probability. This numbers must be random. > > For example I need that > >magicfunction(3) > >[1] 0.3152460 0.5231614 0.1615926 > >magicfunction(3) > >[1] 0.6147933 0.3122999 0.07290

Re: [R] How can I generate this numbers

2006-10-02 Thread Ricardo Rios
Hi Rolf Turner, I have a statistical model, it model need this numbers for calculate the probability. This numbers must be random. For example I need that >magicfunction(3) >[1] 0.3152460 0.5231614 0.1615926 >magicfunction(3) >[1] 0.6147933 0.3122999 0.0729068 but the argument of the function

Re: [R] How can I generate this numbers

2006-10-02 Thread Rolf Turner
This sounds so simple it must be a homework problem, no? cheers, Rolf Turner [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing list htt

[R] How can I generate this numbers

2006-10-02 Thread Ricardo Rios
Hi wizards, I need to know how can I generate this numbers I have n numbers N1,N2 , Nn , but Nn = 1- sum(N1+N2+...+Nn-1) and sum(N1+N2+..Nn)=1 and N1,N2,..Nn with 0http://www.geocities.com/ricardo_rios_sv/index.html __ R-help@stat.math.ethz.ch mailin