Re: [R] RES: Need ideas on how to show spikes in my data and how to codeit in R

2008-07-07 Thread Thomas Frööjd
Hi Try changing for(i in 1:250){ jpeg(filename = "graf01.jpg", width = 1024, height = 1024, to for(i in 1:250){ jpeg(filename = paste("graf", i, ".jpg", sep=""), width = 1024, height = 1024, I think that should work, otherwise read up on the paste() function at http://stat.ethz.ch/R-manual

Re: [R] Need ideas on how to show spikes in my data and how to code it in R

2008-06-27 Thread Thomas Frööjd
Hi Thank you very much for taking time to answer. The solution of using hist(data) for the main dataset and adding lines(density(refdata)) for the reference data seem to work great. I forgot to mention one thing however, I need to have frequency on the y azis instead of density as now. I know t

[R] Need ideas on how to show spikes in my data and how to code it in R

2008-06-23 Thread Thomas Frööjd
Hi I have recently been analyzing birthweight data from a clinic. The data has obvious defects in that there is digit preference on certain weights making them overrepresented. This shows as spikes in the histogram on certain well rounded weights like 2, 2.5, 3, etc. I would like to show this t

Re: [R] things that are difficult/impossible to do in SAS or SPSS but simple in R

2008-01-16 Thread Thomas Frööjd
As far as i know mixture modelling (sums of exponentials) cant be done in SAS or SPSS. For R there is the Rmix package that while not very user friendly at least works. On Jan 15, 2008 8:45 PM, Matthew Keller <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm giving a talk in a few days to a group of ps

[R] Finding proportion of observations that are outliers from the left tail of the normal distribution

2007-11-19 Thread Thomas Frööjd
Hi fellow users I have a new R problem i am hoping to get some pointers on. I have a dataset that is approximately normally distributed but with a fat left tail. I am interested in a good measurement on how much fatter the left tail is than can be expected from a normal distribution. One thing I'l

Re: [R] Romoving elements from a vector. Looking for the opposite of c(), New user

2007-11-15 Thread Thomas Frööjd
Not sure i explained it good enough. Ill try with an example say x=[3,3,4,4,4,4,5,5,6,8] z=[3,4,4,5,5] what i want to get after removing z from x is something like x=[3,4,4,6,8] On Nov 15, 2007 3:29 PM, Charilaos Skiadas <[EMAIL PROTECTED]> wrote: > > > On Nov 15, 2007, at

[R] Romoving elements from a vector. Looking for the opposite of c(), New user

2007-11-15 Thread Thomas Frööjd
Hi I have three vectors say x, y, z. One of them, x contains observations on a variable. To x I want to append all observations from y and remove all from z. For appending c() is easily used x <- c(x,y) But how do I remove all observations in z from x? You can say I am looking for the opposite o

[R] JGR, install problem on Vista

2007-11-09 Thread Thomas Frööjd
Hi I would like to try out JGR but can't install and run it. I run vista and that shouldn't be a problem since JGR supports vista since 1.5.1. When running the installer with the --debug flag in an admin shell it download the packages and the following error message comes up. "One or more packag

[R] Adjusting for heaping in data

2007-10-14 Thread Thomas Frööjd
Hi R users. I am new to the community and have got myself into a little problem. I have a dataset of birth weights recorded by nurses at a delivery clinic in an developing country. The weights are entered in KiloGrams with one decimal. However there is substantial heaping at each 500g when lookin