[R] anova.lm and F-test

2012-07-09 Thread Suresh Krishna
Hello, Why does anova.lm sometimes return a p-value and at other times not ? Is it because it recognizes nested models from non-nested ones ? x-seq(1,100,1) y-3*x+rnorm(100) anova(lm(y~x),lm(y~x+I(x^2)),test=F) Analysis of Variance Table Model 1: y ~ x Model 2: y ~ x + I(x^2) Res.Df

[R] Grouped regression

2012-07-08 Thread Suresh Krishna
Hi, I am a very occasional user of R, and will be grateful for some help in constructing a regression across groups. Here is an example: library(MASS) attach(cats) Sex[120:144]-factor(TG) #Renaming some males to transgender, to create 3 groups, male, female and transgender

[R] nls + quasi-poisson distribution

2010-07-05 Thread Suresh Krishna
Hello R-helpers, I would like to fit a non-linear function to data (Discrete X axis, over-dispersed Poisson values on the Y axis). I found the functions gnlr in the gnlm package from Jim Lindsey: this can handle nonlinear regression equations for the parameters of Poisson and negative

[R] 2 x 2 x 10 x 2 binomial setup

2009-07-14 Thread Suresh Krishna
Hello, I have a hierarchical dataset of this form and am trying to analyze it in R. 1 subject Tested under 2 conditions: A and B 10 sesssions in each condition In each session, 2 kinds of tests: Test 1 and Test 2 200 independent repetitions of each test-type, with 200 Yes/No answers So I

Re: [R] locfit smoothing question (package maintainer not reachable)

2009-03-04 Thread Suresh Krishna
On Tue, 03 Mar 2009 22:10:42 +0100, David Winsemius dwinsem...@comcast.net wrote: That is what I thought to be the critical paragraph. The variance is assumed to be = 1 when you use family=gaussian rather than the default of family=qgauss. You give it a vector, 1000*rnorm(100), that ranges

Re: [R] locfit smoothing question (package maintainer not reachable)

2009-03-03 Thread Suresh Krishna
there is such a difference between the two. If there is a simple explanation or recommendation, I am eager to hear it. Thanks, Suresh On Tue, 03 Mar 2009 16:56:43 +0100, Suresh Krishna madzient...@gmail.com wrote: Dear list members, I am trying to understand this output from the smoothing package locfit (1.5

Re: [R] locfit smoothing question (package maintainer not reachable)

2009-03-03 Thread Suresh Krishna
David Winsemis wrote: I think you should read (or re-read) the locfit help page and *also* the links from that page to the help pages for locfit.raw and rv. I would have thought that since family= is not an argument to locfit per se, but rather is documented in locfit.raw that you have

Re: [R] R and reading matlab compressed files

2007-11-21 Thread Suresh Krishna
One possibility is to save in ASCII format from Matlab (save -ascii) Suresh On 17/11/2007, Prof Leslie Smith [EMAIL PROTECTED] wrote: Is there any way to read these files (standard .mat files, created by matlab version 7 onwards are compressed)? I know that R.matlab doesn't read them (it