[R] Goodness fit test HELP!

2005-11-17 Thread David Zhao
Hi there, I'm a newbie, plesae bear with me. I have a dataset with about 1 ~ 3 data points. Would like fit to both Gamma and Normal distribution to see which one fits better. How do I do this in R? Or I could do a normality test of the data, if it's normal, I then will do a normal fit, oth

[R] library MASS fitdistri() funciotn question

2005-11-14 Thread David Zhao
Hi there, I've been trying to use fitdistr fuction to fit our data onto a gamma distribution, sometimes it works and sometimes it doesn't. I realized that our data 10% of time is normal distributed instead of gamma. Since this is included in a processing pipeline, I'd like to test the fitting to s

[R] help with legacy R code

2005-11-09 Thread David Zhao
Hi there, Could somebody help me disect this legacy R script I inherited at work, I have two questions: 1. I've tried to upgrade our R version from 1.6.2 (yeah, I know), to R 2.0, but some of the lines in this script are not compatible with R 2.0, could someone help me figure out where the proble

[R] running JPEG device on R 1.9.1 using xvfb-run on Linux

2005-10-12 Thread David Zhao
Hi there, Does anybody have experience in running jpeg device using xvfb-run on linux? I've been having sporadic problem with: /usr/X11/bin/xvfb-run /usr/bin/R --no-save < Rinput.txt, with error saying: error in X11 connection. Especially when I run it from a perl script. Is there a better way of