Description Usage Arguments Details Value Dependencies Author(s) Examples
Combined computations for model checking.
1 2 |
regression |
an object of regression model. |
formula |
a string character to be transformed as an object of class |
datasources |
a list of opal object(s) obtained after login in to opal servers;
these objects hold also the data assign to R, as |
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.)
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. |
modelCheckingDS
Paula Raissa Costa e Silva
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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.