ds.modelCheckings: Summarizing Regression Models

Description Usage Arguments Details Value Dependencies Author(s) Examples

Description

Combined computations for model checking.

Usage

1
2
ds.modelCheckings(regression = NULL, formula = NULL, weight = NULL,
  datasources = NULL)

Arguments

regression

an object of regression model.

formula

a string character to be transformed as an object of class formula.

datasources

a list of opal object(s) obtained after login in to opal servers; these objects hold also the data assign to R, as data frame, from opal datasources.

Details

Combines the computation of the coefficients, standard errors, etc. The coefficients component of the result gives the estimated coefficients and their estimated standard errors, together with their ratio. This third column is labelled t ratio if the dispersion is estimated, and z ratio if the dispersion is known (or fixed by the family). A fourth column gives the two-tailed p-value corresponding to the t or z ratio based on a Student t or Normal reference distribution. (It is possible that the dispersion is not known and there are no residual degrees of freedom from which to estimate it. In that case the estimate is NaN.)

Value

Returns a list with the following components:

residuals

the weighted residuals, the usual residuals rescaled by the square root of the weights specified in the call to lm.

residuals.quantis

the residuals quartiles

coefficients

the matrix of coefficients, standard errors, z-values and p-values. Aliased coefficients are omitted.

sigma

the square root of the estimated variance of the random error.

df

degrees of freedom, a 3-vector (p, n-p, p*), the first being the number of non-aliased coefficients, the last being the total number of coefficients.

r.squared

R^2, the fraction of variance explained by the model

R^2 = 1 - Sum(R[i]^2) / Sum((y[i]-y*)^2)

, where y* is the mean of yi if there is an intercept and zero otherwise.

adj.r.squared

the above R^2 statistic 'adjusted', penalizing for higher p.

fstatistic

(for models including non-intercept terms) a 3-vector with the value of the F-statistic with its numerator and denominator degrees of freedom.

pvalue

p-value from f-statistic.

n

the sample size.

cov.unscaled

the unscaled (dispersion = 1) estimated covariance matrix of the estimated coefficients.

Dependencies

modelCheckingDS

Author(s)

Paula Raissa Costa e Silva

Examples

1
2
3
4
5
6
7
8
{
linear <- ds.linear('D$maternal_age~D$birth_weight')
logistic <- ds.logistic('menarche ~ D$age')
poisson <- ds.poisson('D$y ~ D$x')
ds.summary(linear)
ds.summary(logistic)
ds.summary(poisson)
}

paularaissa/distStatsClient documentation built on June 19, 2019, 12:43 a.m.