Hi,
I?m not sure what separates the betas from the sigma^2 is ?interestingness?.
As Gary suggested, one may be interested in modelling the variance as a
parameter which depends upon a matrix of explanatory variables Z (where Z
could even be X).
The probit has a ?hidden? ancillary parameter because it assumes unit
variance. (As based on the stylised normal)
From: gov2001-l-bounces at
lists.fas.harvard.edu
[mailto:gov2001-l-bounces at
lists.fas.harvard.edu] On Behalf Of Andrew Coe
Sent: 20 March 2007 22:57
To: gov2001-l at
lists.fas.harvard.edu
Subject: Re: [gov2001-l] beta <- par[1:ncol(X)]
Jill,
Though it is unnecessary for the probit and logit models used in this and
last week?s problem sets, that command is appropriate when the ?par?
returned by optim() contains estimates of ancillary parameters. ?Ancillary
parameters? are things that have to be estimated to fit a model to the data,
but that are not interesting in and of themselves. The command below
assigns to beta only those estimated parameters which are ?interesting?,
i.e., the estimated coefficients on each of your independent variables.
Andrew
On 3/20/07 6:43 PM, "Jill Goldenziel" <jgolden at fas.harvard.edu> wrote:
There has been some confusion in the lab over what exactly this line of code
does and means:
beta <- par[1:ncol(X)]
Can anyone please explain clearly and in writing ("so I can convince myself
of it later") what this is doing, and why it makes my functions work?
Thanks,
Jill
_____
_______________________________________________
gov2001-l mailing list
gov2001-l at
lists.fas.harvard.edu
HYPERLINK
"http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l"http://lists.fas.ha
rvard.edu/mailman/listinfo/gov2001-l
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.15/728 - Release Date: 20/03/2007
08:07
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.15/728 - Release Date: 20/03/2007
08:07