[R] Plotting the Log-Likelihood

2009-08-25 Thread enrico.fosco...@libero.it
Dear Users, I would like to plot the log-likelihood (depending on two parameters). I wrote the following code: library(mvtnorm) sigma<- matrix(c(4,2,2,3),ncol=2) x<-rmvnorm(n=500,mean=c(1,2),sigma=sigma) likel<- function(param,data){

[R] Two or more dimensional root (Zero) finding

2009-04-20 Thread enrico.fosco...@libero.it
Good morning to all, I should find the zero of a specific function with respect to a vector of arguments. Does it exist something similar in R? Thank you very much, Enrico Foscolo __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/lis

[R] Find a zero of a composition of functions

2009-04-09 Thread enrico.fosco...@libero.it
Good morning to all, I should find the zero of a specific function, func(x,f. me,c,t)=x+f.me*c-t where 'c' and 't' are constants and 'f.me' is an other function of 'x'. Actually, I am interested in considering 'f.me' as an expression(). Namely, uniroot.me<-function(f.me,c,t){

[R] Including greek letters in a pairs() plot

2009-03-25 Thread enrico.fosco...@libero.it
Good Morning, I have a stupid problem about inclusion of greek letters in a plot built with function pairs(). First of all, I have a matrix with 3 columns and 1000 rows and I would like to use pairs() in order to plot points in the upper panel and to compute correlation in the lower panel. In

[R] Color Function

2009-02-18 Thread enrico.fosco...@libero.it
Good Morning to Everybody, I am searching a function which could define a vector of colors from a vector of gray, from white to black (not from black to white as the function gray()). I have to use it in the function image(), parameter "col". Thank You very much, Enrico Foscolo

[R] Function able to identify the row and the column in a matrix

2009-01-21 Thread enrico.fosco...@libero.it
Good morning to all, I should evaluate a function for every cell of a given matrix with n rows and n columns. This function, named fun(), has got two arguments: the number of the row and the number of the column which characterized every single cell. So the result should be fun(1,1) fun(1,2

[R] Function able to identify the row and the column in a matrix

2009-01-21 Thread enrico.fosco...@libero.it
Good morning to all, I should evaluate a function for every cell of a given matrix with n rows and n columns. This function, named fun(), has got two arguments: the number of the row and the number of the column which characterized every single cell. So the result should be fun(1,1) fun(1,2