[R] VCOV Source Code

Henrik Bengtsson hb at stat.berkeley.edu
Fri Jan 9 05:43:49 CET 2009


> stats::vcov.lm
Error: 'vcov.lm' is not an exported object from 'namespace:stats'

> stats:::vcov.lm
function (object, ...)
{
    so <- summary.lm(object, corr = FALSE)
    so$sigma^2 * so$cov.unscaled
}
<environment: namespace:stats>

/Henrik

On Thu, Jan 8, 2009 at 1:44 AM, Carlos J. Gil Bellosta
<cgb at datanalytics.com> wrote:
> Hello,
>
> You can do
>
> stats:::vcov.lm
>
> to see the source code for that particular method. In order to see which
> are the methods supported by vcov, write
>
> methods("vcov")
>
> Best regards,
>
> Carlos J. Gil Bellosta
> http://www.datanalytics.com
>
>
> On Wed, 2009-01-07 at 21:37 -0600, Yang Wan wrote:
>> Dear R Help,
>>
>>
>>
>> I wonder the way to show the source code of [vcov] command.  Usually, it
>> can show the source code after input the command and enter. But for
>> [vcov], it shows
>>
>>
>>
>> function (object, ...)
>>
>> UseMethod("vcov")
>>
>> <environment: namespace:stats>
>>
>>
>>
>> I appreciate for your help.  Best wishes.
>>
>>
>>
>> Christina
>>
>>
>>       [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list