coefTable: Coefficient Table

Description Usage Arguments Value Author(s) Examples

View source: R/coefTable.R

Description

Generate Table for Coefficients, Std. Errors, t-values and P-values.

Usage

1
   coefTable( coef, stdErr, df = NULL )

Arguments

coef

vector that contains the coefficients.

stdErr

vector that contains the standard errors of the coefficients.

df

degrees of freedom of the t-test used to calculate P-values.

Value

a matrix with 4 columns: coefficients, standard errors, t-values and P-values. If argument df is not provided, the last column (P-values) is filled with NAs.

Author(s)

Arne Henningsen

Examples

1
   coefTable( rnorm( 10 ), 0.5 * abs( rnorm( 10 ) ), 20 )

Example output

         Estimate Std. Error    t value    Pr(>|t|)
 [1,]  1.44243574 0.33008421  4.3699023 0.000296319
 [2,]  0.22924361 1.02504483  0.2236425 0.825304054
 [3,] -0.80300367 0.37188552 -2.1592765 0.043152870
 [4,] -0.02484487 0.09867081 -0.2517956 0.803768357
 [5,] -1.28364149 0.33271069 -3.8581312 0.000980084
 [6,]  1.59516803 0.71136756  2.2423964 0.036428773
 [7,] -0.58872491 0.24524638 -2.4005448 0.026218787
 [8,]  0.51912828 0.12021482  4.3183386 0.000334235
 [9,] -1.32843779 0.75255897 -1.7652275 0.092790648
[10,]  1.21381774 1.23404991  0.9836051 0.337059962

miscTools documentation built on Dec. 9, 2019, 3 a.m.