s-news
[Top] [All Lists]

Adjusted R-squared in S-Plus

To: s-news@lists.biostat.wustl.edu
Subject: Adjusted R-squared in S-Plus
From: Julia Linke <jlinke@ucalgary.ca>
Date: Tue, 29 Apr 2003 16:11:35 -0600
Organization: The University of Calgary
Dear List,
I am running S-Plus 2000, professional release, and I am looking for the
function to compute the adjusted R2 (adjr2 as in R) on a linear model.
I only get the unadjusted R-squared when running the command as below.
I would appreciate it if anyone could share their experience.
Thanks very much in advance
    Julia

test1<-
lm(data=landscape,AREA.MN..change~+AREA.MN.initial+FinalSeismic.Densitymperha+FinalSeismic.Densitymperha^2)

> summary(test1)
Call: lm(formula = AREA.MN..change ~  + AREA.MN.initial +
 FinalSeismic.Densitymperha + FinalSeismic.Densitymperha^2, data =
 landscapelevelmetricchanges.paperversion.bothlines)
Residuals:
   Min     1Q Median    3Q   Max
 -17.6 -1.776 0.3264 3.002 10.09
Coefficients:
                                   Value Std. Error  t value Pr(>|t|)
                       (Intercept)   5.5706   1.8972     2.9361   0.0041

                AREA.MN.initial  -1.8896   0.2384    -7.9263   0.0000
     FinalSeismic.Densitymperha  -2.5133   0.1813   -13.8619   0.0000
I(FinalSeismic.Densitymperha^2)   0.0336   0.0053     6.3555   0.0000

Residual standard error: 4.491 on 100 degrees of freedom
Multiple R-Squared: 0.8386
F-statistic: 173.3 on 3 and 100 degrees of freedom, the p-value is 0


Attachment: jlinke.vcf
Description: Card for Julia Linke

<Prev in Thread] Current Thread [Next in Thread>
  • Adjusted R-squared in S-Plus, Julia Linke <=