Skip to content

trouble with extraction/interpretation of variance struct ure para meters from a model built using gnls and varConstPower

1 message · Rand, Hugh

#
Works perfectly. Thank you.
-Hugh Rand

-----Original Message-----
From: Spencer Graves [mailto:spencer.graves at pdf.com]
Sent: Sunday, January 15, 2006 6:41 PM
To: Rand, Hugh
Cc: 'r-help at lists.R-project.org'
Subject: Re: [R] trouble with extraction/interpretation of variance
structure para meters from a model built using gnls and varConstPower


	  How about this:

 > exp(coef(model3$modelStruct$varStruct)["const"])
     const
0.6551298

	  Does that answer the question about not understanding the
connection 
between summary(model3) and coef(model3$modelStruct$varStruct)["const"]?

	  Regarding the question about R not being able to find
'coef.varFunc', 
I tried the following:
 > methods("coef")
<snip>
  coef.varFunc*
[37] coef.varIdent*        coef.varPower*

    Non-visible functions are asterisked	

	  Since "coef.varFunc" is "asterisked", I tried 
'getAnywhere(coef.varFunc)'.  I walked through this code line by line, 
until I found the following:

 > (val <- as.vector(model3$modelStruct$varStruct))
Variance function structure of class varConstPower representing
     const     power
0.6551298 0.8913665

	  Answer the questions?
	  spencer graves
Rand, Hugh wrote:

            
what
SSfpl(x,A,B,xmid,scal),data=data,weights=varConstPower(const=1,power=0,form=
=
=
=
http://www.R-project.org/posting-guide.html