[R] Weighted Logistic Regression in R: Can R do what SAS PROC LOGISTIC does?

2014-08-01 Thread Sam Wong
I wonder if anyone has written some additional R code to perform weighted logistic regression in the way of SAS PROC LGOISTIC WEIGHT statement. I want to weight the sample using a vector of probabilities generated from Dirichlet distribution. It is known that the R function glm has a WEIGHT

Re: [R] Can R do zero inflated gamma regression?

2011-06-06 Thread Ben Bolker
siriustar qinlangjinan at live.cn writes: Hi, Dear R-help I know there are some R package to deal with zero-inflated count data. But I am now looking for R package to deal with zero-inflated continuous data. The response variable (Y) in my dataset contains a larger mount of zero and the

[R] Can R do zero inflated gamma regression?

2011-06-05 Thread siriustar
Hi, Dear R-help I know there are some R package to deal with zero-inflated count data. But I am now looking for R package to deal with zero-inflated continuous data. The response variable (Y) in my dataset contains a larger mount of zero and the Non-zero response are quite right skewed. Now what

Re: [R] Can R do zero inflated gamma regression?

2011-06-05 Thread Simon Blomberg
You might find Tweedie distributions helpful. See packages tweedie and statmod. Cheers, Simon. On 06/06/11 14:12, siriustar wrote: Hi, Dear R-help I know there are some R package to deal with zero-inflated count data. But I am now looking for R package to deal with zero-inflated continuous

Re: [R] Can R do specific factor analysis?

2009-10-15 Thread Ista Zahn
On Wed, Oct 14, 2009 at 7:00 PM, Tiger Guo tigerguou...@gmail.com wrote: Hello, Can R do factor analysis using eigenvalue greater than one to automatically determine the number of factors to extract? You could write code automate this, but it's easy enough to look at the scree plot and use

[R] Can R do specific factor analysis?

2009-10-14 Thread Tiger Guo
Hello, Can R do factor analysis using eigenvalue greater than one to automatically determine the number of factors to extract? I am afraid that R cannot provide the function we want. But I can use R to write a function to do the specific factor analysis. Because the functions needed for

[R] Can R do this ?

2008-07-08 Thread Daren Tan
I have a folder full of pngs and jpgs, and would like to consolidate them into a pdf with appropriate title and labels. Can this be done via R ? _ Easily publish your photos to your Spaces with Photo Gallery. [[alternative

Re: [R] Can R do this ?

2008-07-08 Thread Paul Smith
On Tue, Jul 8, 2008 at 6:59 AM, Daren Tan [EMAIL PROTECTED] wrote: I have a folder full of pngs and jpgs, and would like to consolidate them into a pdf with appropriate title and labels. Can this be done via R ? I do not know whether R can do that. However, you can accomplish that easily with

Re: [R] Can R do this ?

2008-07-08 Thread Gabor Csardi
If this is about more than a handful files, then it is really painful to do it with OpenOffice.org or LyX, I guess. You can use imagemagick, this is fairly standard on Linux. Then it is something like this, assuming you have bash: for f in *.png; do convert $f ${f%png}pdf; done for f in *.jpg;

Re: [R] Can R do this ?

2008-07-08 Thread Mark Difford
Hi Daren, Can R (out)do Emacs? I think you just need to ?Sweave a little. Mark. Daren Tan wrote: I have a folder full of pngs and jpgs, and would like to consolidate them into a pdf with appropriate title and labels. Can this be done via R ?

Re: [R] Can R do this ?

2008-07-08 Thread Gabor Csardi
Ooops, please ignore my previous mail, I did not read the question carefully enough. Gabor On Tue, Jul 08, 2008 at 02:27:51AM -0700, Mark Difford wrote: Hi Daren, Can R (out)do Emacs? I think you just need to ?Sweave a little. Mark. Daren Tan wrote: I have a folder

[R] Can R do rts (Regular Time Series) like S-Plus?

2008-04-29 Thread Louise Hoffman
Dear readers, S-Plus have a rts function (Regular Time Series), which is used like so: fveks-read.csv('http://louise.hoffman.googlepages.com/veks.csv',header=TRUE,sep=',') attach(fveks) acf(ts.intersect(rts(HC.f),rts(Ta.f),rts(GR.f),rts(W.f))) Warning the csv file is 750kB. Can the same be

Re: [R] Can R do rts (Regular Time Series) like S-Plus?

2008-04-29 Thread Gabor Grothendieck
On Tue, Apr 29, 2008 at 11:03 PM, Louise Hoffman [EMAIL PROTECTED] wrote: Dear readers, S-Plus have a rts function (Regular Time Series), which is used like so: fveks-read.csv('http://louise.hoffman.googlepages.com/veks.csv',header=TRUE,sep=',') attach(fveks)

Re: [R] Can R do rts (Regular Time Series) like S-Plus?

2008-04-29 Thread Prof Brian Ripley
Use ts() in R. See e.g. the chapter on times series in MASS4. Just replacing rts() by ts() in your example gives what I guess you were expecting in S-PLUS. On Wed, 30 Apr 2008, Louise Hoffman wrote: Dear readers, S-Plus have a rts function (Regular Time Series), which is used like so: