/usr/share/doc/r-cran-misctools/tests/stdErTests.Rout.save is in r-cran-misctools 0.6-22-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> ## testing stdEr() methods
> library( miscTools )
> data(cars)
>
> # lm()
> lmRes <- lm(dist ~ speed, data=cars)
> summary( lmRes )
Call:
lm(formula = dist ~ speed, data = cars)
Residuals:
Min 1Q Median 3Q Max
-29.069 -9.525 -2.272 9.215 43.201
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -17.5791 6.7584 -2.601 0.0123 *
speed 3.9324 0.4155 9.464 1.49e-12 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 15.38 on 48 degrees of freedom
Multiple R-squared: 0.6511, Adjusted R-squared: 0.6438
F-statistic: 89.57 on 1 and 48 DF, p-value: 1.49e-12
> stdEr( lmRes )
(Intercept) speed
6.7584402 0.4155128
>
> # nls()
> nlsRes <- nls( dist ~ b0 + b1 * speed^b2, start = c( b0=0, b1=1, b2=1 ),
+ data = cars )
> summary( nlsRes )
Formula: dist ~ b0 + b1 * speed^b2
Parameters:
Estimate Std. Error t value Pr(>|t|)
b0 5.4878 10.6846 0.514 0.60992
b1 0.2612 0.4847 0.539 0.59248
b2 1.7875 0.5553 3.219 0.00233 **
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 15.19 on 47 degrees of freedom
Number of iterations to convergence: 7
Achieved convergence tolerance: 3.388e-06
> stdEr( nlsRes )
b0 b1 b2
10.6845856 0.4846584 0.5553006
>
> proc.time()
user system elapsed
0.152 0.012 0.166
|