[R] How to solve systems of nonlinear equations in R?

2008-07-18 Thread François Aucoin
Hey, I was wondering if there existed a R function similar to 'fsolve' or 'fzero' Matlab functions? Thanks! Francois Aucoin [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help P

[R] How can I solve this function in R?

2008-06-02 Thread François Aucoin
I would like to solve the following function in R: G <- function(k) (2*(1 - k)*(1 + 2*k)^.5)/(1+3*k) I want to be able to find "k" for a given "G" Thanks! Francois Aucoin [[alternative HTML version deleted]] __ R-help@r-project.org mailing

[R] Minimizing the negative log likelihood function...

2008-06-03 Thread François Aucoin
Hey, The following is a function I wrote which generates random variables from a Kappa (2-parameter) distribution. rkappa <- function(n,beta,alpha){ if(alpha <= 0) stop("alpha must be greater than zero!") if(beta <= 0) stop("beta must be greater than zero!") Vec <- beta*exp((1/alpha)*(log(

[R] How to include a vignette with my package?

2008-04-06 Thread François Aucoin
I want to include a vignette with a package I wrote. I did follow the "Writting R extentions" document step by step, but went I run "Rcmd build", an error occurs. It goes like this: " * creating vignettes ... ERROR . . . . :7: Emergency stop L7L ==> Fatal error occurred, no output PDF file prod