[R] error (code 12)

2010-08-09 Thread khazaei
: can't allocate region *** set a breakpoint in malloc_error_break to debug Is there any an easy way to overcome this error? Any help or information would be great, thanks I am using Mac OS X 10.5.8. Khazaei __ R-help@r-project.org mailing list https

[R] How we can open the results are saved

2010-06-14 Thread khazaei
Hi all I saved the result of my code as a file, like save(namefunction,file=adresse/filename.R). I want to open the filename. Could you please help me how I can open the filename and see the result. best Khazaei __ R-help@r-project.org mailing list

[R] question about graph

2010-05-22 Thread khazaei
Hi, I have two different sets of data from two different populations. I want to plot these samples (for example: Line graph) by just one graph. could you please help me? Thanks Khazaei __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] question about R

2010-05-11 Thread khazaei
Hi, At each iteration in my program,I need to generate tree vectors,X1,X2,X3, from exponential distribution with parameters a1,a2,a3. Can you help me please how can I do it such that it take a little time? thank you khazaei __ R-help@r-project.org

[R] how I can see the results are saved

2010-04-28 Thread khazaei
Hi, all I have saved the results of the my program, now I want to see the results, could you please tell me how I can do this? thank you __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] divid the rows of the matrix by the cector

2010-03-11 Thread khazaei
Hi, I have a matrix with m rows and n column and a vector with n elements. I want to divid each rows of the matrix by vector direcly. could you please hint me? Thank you khazaei __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] qoestion on insert a vector into a matrix

2010-03-06 Thread khazaei
Hi, I want to add a vector many time to rows of the matrix without use the loop. could you please hint me? thanks khazei __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] question on maximum of each row of the matrix

2010-03-05 Thread khazaei
Hi, I used the apply()function to compute the maximum of the each row of the matrix, but in my application sometime the matrix has just one row, and the apply() dosen't work. Could you please give me some hints? thank you khazaei __ R-help@r

[R] question to define a matrix with some vectors with different lengths

2010-03-02 Thread khazaei
Hi, I have some vector v1,v2,...,vk, with different lengths. I want to consider these vectors as a matrix with k rows. Can you please guide me how I can do it? Regards khazaei __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

[R] qustions about to check a sample from truncated gamma dist.

2010-02-28 Thread khazaei
Hi, I have generated a sample,Z, from right truncated gamma distribution,Gamma(a,b,t), I want to know how can check this sample being a sample of gamma(a,b,t)? thank you for your help. khazaei __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] question to make a vector without loop

2010-02-26 Thread khazaei
Hello all, I want to define a vector like w[k+1]=w[k]*a/(b+k) for k=1,...,N-1 without use loop. Is it posible to do in R? Regards khazaei __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] How to plot three graphs on one single plot?

2010-02-10 Thread khazaei
Hello alla I have three kinds of information (x,y1),(x,y2),(x,y3) such that x and y1,y2,y3 are the vectors with the same dimention. Now I want to plot these three class af information on one plot. thank you for your help. khazaei __ R-help@r

[R] [Fwd: question on plot in R with mac]

2010-02-04 Thread khazaei
Hello all I want to simulate a sample from Dirichlet distribution with parameter alpha(.), for example: X=(0,1) alpha(.)=2*beta(1,1). Can you help me please? thank you khazaei __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] simulat from dirichet process

2010-02-04 Thread khazaei
Sorry for last mail because the subject was wrong. Hello all I want to simulate a sample from Dirichlet distribution with parameter alpha(.), for example: X=(0,1) alpha(.)=2*beta(1,1). Can you help me please? thank you khazaei __ R-help@r

[R] question on plot in R with mac

2010-01-20 Thread khazaei
you khazaei __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] question on plot in R with mac

2010-01-19 Thread khazaei
-- Hello all My computer is MacBook and I want to draw a plot in R, for example for x - c(1,3,6,9,12) y - c(1.5,2,7,8,15) I use this command plot(x,y). but it dosn't work. Could you please help me? thank you khazaei

[R] how can sample from f(x)#8733;x^(a-1)

2009-12-25 Thread khazaei
Hello all how can sample from f(x)#8733;x^(a-1)*ind(0,min(b,-log(u)) in R? where a and b is positive constand and 0u1 thanks khazaei __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] [ how can sample from f(x)~x^(a-1)

2009-12-25 Thread khazaei
Hello all how can sample from f(x)~x^(a-1)*ind(0,min(b,-log(u)) in R? where a and b is positive constand and 0u1 thanks khazaei __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] how can generate h(u)=min{a,log(u)} for 0u1 in R ?

2009-12-21 Thread khazaei
Hello, How can generate a sample from h(u)=min{a,log(u)} for 0u1 in R,please? thank you khazaei __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

[R] how can generate from trunceted gamma distribution in R ?

2009-12-11 Thread khazaei
Hi, all How can generate a sample from truncated inverse gamma distribution in R? thanks __ R-help@r-project.org 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] inverse gamma truncated

2009-12-07 Thread khazaei
Hi, all How can generate a sample from truncated inverse gamma distribution in R? thanks __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and

[R] question about invers gamma trancted

2009-12-04 Thread khazaei
Hi I want to generate from invers gamma distribution truncated but when I use the rinvegamma() function, the system can not find this function. Is ther someone to help me please? thanks soleiman __ R-help@r-project.org mailing list