REG is similar to SAS PROC REG.
REG(Formula, Data, conf.level=0.95, HC=FALSE, Weights=1, summarize=TRUE)
The result is comparable to that of SAS PROC REG.
The first part is ANOVA table.
The second part is measures about fitness.
The third part is the esimates of coefficients.
point estimate of parameters, coefficients
estimability: 1=TRUE, 0=FALSE. This appears only when at least one inestimability occurs.
standard error of the point estimate
lower confidence limit with conf.level
lower confidence limit with conf.level
degree of freedom
value for t distribution
probability of larger than absolute t value from t distribution with residual's degree of freedom
The above result is repeated using HC0 and HC3, with following White's first and second moment specification test, if HC option is specified. The statstic t values and their p values with HC1 and HC2 are between those of HC0 and H3.
If summarize=FALSE
, REG
returns;
beta coefficients
g2 inverse
rank of the model matrix
degree of freedom for the residual
sum of square error
a conventional formula for a linear model
a data.frame
to be analyzed
confidence level for the confidence limit
heteroscedasticity related output is required such as HC0, HC3, White's first and second moment specification test
weights for the each observation or residual square. This is usually the inverse of each variance.
If this is FALSE
, REG
returns just lfit
result.
Kyun-Seop Bae k@acr.kr
It performs the core function of SAS PROC REG.
lr
REG(uptake ~ Plant + Type + Treatment + conc, CO2)
REG(uptake ~ conc, CO2, summarize=FALSE)
Run the code above in your browser using DataLab