[R] Graph and function

2006-06-19 Thread Ahmed Elhabti
I have a program which make calculate them of 4 estimator, B, BE, wB and wBE. Now I want to varied n example: "n<-seq(1,100,1)", and to make a graph of "B" and "Be" according to "n", to make a comparison. Tank you very much. n<-50 a<-0.2 theta<-rexp(n,a) x<-rpois(length(

[R] Simulation / bayesian model

2006-06-15 Thread Ahmed Elhabti
Hi, (In the bayesian model, this program makes estimate the value of theta (tn) with the empirical method.) I want to know how one can repeat this program 100 times, before to have 100 estimated values of tn. This is the program: a<-1 theta<-rexp(50,a) x<-rpois(length(th

[R] graph

2006-06-14 Thread Ahmed Elhabti
Bonjour, Je veux savoir comment je peux avoir avec R deux graphiques en un seul graphique? Exemple Hi, I want to know how I can have with R two graphs in only one graph? Example x<-seq(0,4,0.1) plot(x,dnorm(x),type="l") plot(x,dgamma(x,2,0.5),typ="p") Thanks

[R] Programmation pour MLE

2004-07-21 Thread Ahmed Elhabti
Bonjour, Je veux cherché l’estimateur de vraisemblance maximal (MLE)d’une fonction à 3 paramètre inconue étant donné une échantillon de taille 50 (les observations des valeurs de x) alors comment je peux procédé La fonction de densité est définie par : f(x)= 1/3(g(a1)+g(a2)+g(a3))