[R] Estimation of skewness from quantiles of near-normal distribution

2006-03-23 Thread Leif Kirschenbaum
skew given a set of quantiles, mean, and sigma. I am currently thinking of trying polynomial fits on the QQplot using the raw data I have and then empirically trying to derive a relationship between the quantiles and the skew. Thank you for any ideas. Leif Kirschenbaum Senior Yield Engineer

[R] Combining plaintext and plotmath expressions

2006-03-02 Thread Leif Kirschenbaum
' oplabel-'Development Lab' expr.label(SPC Chart for) I then use exprtitle in: plot(1:10,title= if(plotnum==1) parse(text=exprtitle) else NULL) However: this code seems convoluted and ungainly I don't always get the results I want Any suggestions? Leif Kirschenbaum Senior Yield Engineer

Re: [R] How do I normalise a power spectral density

2006-01-31 Thread Leif Kirschenbaum
I have done a fair bit of spectral analysis, and hadn't finished collecting my thoughts for a reply, so hadn't replied yet. What exactly do you mean by normalize? I have not used the functons periodogram or spectrum, however from the description for periodogram it appears that it returns the

Re: [R] Scientific notation in plots

2006-01-17 Thread Leif Kirschenbaum
(newnum,powerstr,sep=)) nearidx=near (abs(num)0.001) (abs(num)1000) nearidx[is.na(nearidx)]=FALSE if(sum(nearidx)) numstr[nearidx]=sprintf(%.*f,pmax(1,(digits-floor(power[nearidx])-1),na.rm=TRUE),num[nearidx]) numstr[!is.finite(num)] = paste(num[!is.finite(num)]) return(numstr) } Leif

Re: [R] Missing value representation in Excel before

2006-01-10 Thread Leif Kirschenbaum
runs a Perl script xls2csv.pl, which converts an Excel spreadsheet to CSV, for a few Excel spreadsheets which exhibit the particular anomalies preventing use of RODBC. Leif Kirschenbaum Senior Yield Engineer Reflectivity, Inc. (408) 737-8100 x307 [EMAIL PROTECTED] Message: 21 Date: Mon, 9

[R] Find last row (observation) for each combination of variables

2006-01-10 Thread Leif Kirschenbaum
for such a simple task. Any simpler suggestions? -Leif K. Leif Kirschenbaum Senior Yield Engineer Reflectivity, Inc. (408) 737-8100 x307 [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Wikis etc.

2006-01-09 Thread Leif Kirschenbaum
suggest that the key generated each day be short for simplicy in typing it in. I suppose a more complex solution would be for an R function to make a call to open a web-browser with a cookie or something set which thus allows the user to modify R wiki pages. Leif Kirschenbaum Senior Yield Engineer

Re: [R] A comment about R:

2006-01-05 Thread Leif Kirschenbaum
and generate the same graphics. Batch commands: I am working on porting some of my R code to our *NIX server to generate reports and graphs on a scheduled basis. Although a few at IBM did this with SAS, I would have found doing this fairly daunting. -Leif - Leif

[R] how to specify dev.print target by a variable?

2005-12-22 Thread Leif Kirschenbaum
I want to do the following: DEVw=500 DEVh=350 fname=my_plot dev.print(file=fname, device=FOO, width=DEVw, height=DEVh, bg=transparent) How do I do this such that I can specify FOO to be one of several choices? (GDD, PNG, postscript, etc.) If I make FOO a character variable, then

Re: [R] qcc

2005-11-30 Thread Leif Kirschenbaum
If you examine the code for the function violating.runs in the qcc package (try violating.runs) you can deconstruct it to find that the code flags runs where there are .qcc.options$run.length or more points in a row on one side of the center (process mean). However, the classic

[R] Listing object sizes without RODBC objects: contributed function

2005-09-27 Thread Leif Kirschenbaum
I include my workaround for object.size failing on RODBC objects. Code adapted from Petr Pikal's code (http://tolstoy.newcastle.edu.au/R/help/04/06/1228.html). ls.objects-function (pos = 1, order.by,...) { napply - function(names, fn) sapply(names, function(x) fn(get(x,pos=pos))) names -

[R] PowerPoint graph insertion

2005-09-09 Thread Leif Kirschenbaum
PowerPoint presentation? (actually, I'd copy last week's presentation and then update with new plots) I'll guess that it cannot, as there probably is not a Microsoft supplied interface (ODBC or otherwise) with PowerPoint as there is with Excel. -Leif Kirschenbaum, Ph.D. Sr. Yield Integration