Title: | Robust Analysis using Forward Search |
---|---|
Description: | Robust analysis using forward search in linear and generalized linear regression models, as described in Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer. |
Authors: | Kjell Konis [aut], Marco Riani [aut], Luca Scrucca [ctb], Ken Beath [aut, cre] |
Maintainer: | Ken Beath <[email protected]> |
License: | GPL-2 |
Version: | 1.0.7 |
Built: | 2024-11-27 06:27:41 UTC |
Source: | CRAN |
The ar
data frame has 60 rows and 4 columns.
data(ar)
data(ar)
This data frame contains the following columns:
a numeric vector
a numeric vector
a numeric vector
a numeric vector
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.2
The bliss
data frame has 8 rows and 4 columns.
data(bliss)
data(bliss)
This data frame contains the following columns:
a numeric vector
a numeric vector
a numeric vector
a numeric vector
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.20
Calcium uptake of cells suspended in a solution of radioactive calcium.
The calcium
data frame has 27 rows and 2 columns.
data(calcium)
data(calcium)
This data frame contains the following columns:
a numeric vector
a numeric vector
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.13
The carinsuk
data frame has 128 rows and 5 columns.
data(carinsuk)
data(carinsuk)
This data frame contains the following columns:
a factor with levels: 17-20
, 21-24
, 25-29
, 30-34
, 35-39
, 40-49
, 50-59
, 60+
a factor with levels: A
, B
, C
, D
a factor with levels: 0-3
, 10+
, 4-7
, 8-9
a numeric vector
a numeric vector
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.16
Reaction rate for Catalytic Isomerization of n-Pentane to
Isopentane
The carr
data frame has 24 rows and 4 columns.
data(carr)
data(carr)
This data frame contains the following columns:
partial pressure of hydrogen
partial pressure of n-pentane
partial pressure of iso-pentane
rate of disappearance of n-pentane
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.15
The cellular
data frame has 16 rows and 3 columns.
data(cellular)
data(cellular)
This data frame contains the following columns:
Dose of TNF (U/ml)
Dose of IFN (U/ml)
Number of cells differentiating
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.19
The chapman
data frame has 200 rows and 7 columns.
data(chapman)
data(chapman)
This data frame contains the following columns:
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.24
These data are obtained from Atkinson and Riani (2000), which is a simplified version of the data in Evans (2000). The outcome is the number of deaths that occurred in a train accident with a categorical covariate describing the type of rolling stock, and an exposure variable giving the annual distance travelled by trains in that year, and was originally analysed using a Poisson model. As the data does not include observations with zero deaths, it will be analysed here as a zero-truncated Poisson with an offset of log of the train distance. The derailme
data frame has 67 rows and 5 columns.
data(derailme)
data(derailme)
This data frame contains the following columns:
Month of accident
Year of accident
Type of rolling stock 1=Mark 1 train, 2=Post-Mark 1 train, 3=Non-passenger
Amount of traffic on the railway system (billions of train km)
Number of deaths that occurred in the train accident
Atkinson and Riani (2000)
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.18
Evans, A. W. (2000). Fatal train accidents on Britain's mainline railways. Journal Royal Statistical Society A, 163(1), 99-119.
The dialectric
data frame has 128 rows and 3 columns.
data(dialectric)
data(dialectric)
This data frame contains the following columns:
Time (weeks)
Temperature (degrees Celsius)
dialectric breakdown strength in kilovolts
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.17
Generate all combinations of the elements of x taken m at a time. If x is a positive integer, returns all combinations of the elements of seq(x) taken m at a time.
If argument fun
is not null, applies a function given by the argument to each point.
If simplify is FALSE
, returns a list; else returns a vector or an array. Optional arguments ...
are passed unchanged to the function given by argument fun
, if any.
fwd.combn(x, m, fun = NULL, simplify = TRUE, ...) fwd.nCm(n, m, tol = 1e-08)
fwd.combn(x, m, fun = NULL, simplify = TRUE, ...) fwd.nCm(n, m, tol = 1e-08)
x |
a vector or a single value. |
n |
a positive integer. |
m |
a positive integer. |
fun |
a function to be applied to each combination. |
simplify |
logical, if |
tol |
optional, tolerance value. |
... |
optional arguments passed to |
Returns a vector or an array if simplify = TRUE
, otherwise a list.
Renamed by Kjell Konis for inclusion in the Forward Library 11/2002
Scott Chasalow
Nijenhuis, A. and Wilf, H.S. (1978) Combinatorial Computers and Calculators. NY: Academic Press.
fwd.combn(letters[1:4], 2) fwd.combn(10, 5, min) # minimum value in each combination # Different way of encoding points: fwd.combn(c(1,1,1,1,2,2,2,3,3,4), 3, tabulate, nbins = 4) # Compute support points and (scaled) probabilities for a # Multivariate-Hypergeometric(n = 3, N = c(4,3,2,1)) p.f.: table(t(fwd.combn(c(1,1,1,1,2,2,2,3,3,4), 3, tabulate, nbins=4)))
fwd.combn(letters[1:4], 2) fwd.combn(10, 5, min) # minimum value in each combination # Different way of encoding points: fwd.combn(c(1,1,1,1,2,2,2,3,3,4), 3, tabulate, nbins = 4) # Compute support points and (scaled) probabilities for a # Multivariate-Hypergeometric(n = 3, N = c(4,3,2,1)) p.f.: table(t(fwd.combn(c(1,1,1,1,2,2,2,3,3,4), 3, tabulate, nbins=4)))
This function applies the forward search approach to robust analysis in generalized linear models.
fwdglm(formula, family, data, weights, na.action, contrasts = NULL, bsb = NULL, balanced = TRUE, maxit = 50, epsilon = 1e-06, nsamp = 100, trace = TRUE)
fwdglm(formula, family, data, weights, na.action, contrasts = NULL, bsb = NULL, balanced = TRUE, maxit = 50, epsilon = 1e-06, nsamp = 100, trace = TRUE)
formula |
a symbolic description of the model to be fit. The details of the model are the same as for glm. |
family |
a description of the error distribution and link function to be used in the model. See |
data |
an optional data frame containing the variables in the model. By default the variables are taken from the environment from which the function is called. |
weights |
an optional vector of weights to be used in the fitting process. |
na.action |
a function which indicates what should happen when the data contain |
contrasts |
an optional list. See the |
bsb |
an optional vector specifying a starting subset of observations to be used in the forward search. By default the |
balanced |
logical, for a binary response if |
maxit |
integer giving the maximal number of IWLS iterations. See |
epsilon |
positive convergence tolerance epsilon. See |
nsamp |
the initial subset for the forward search in generalized linear models is found by the function |
trace |
logical, if |
The function returns an object of class "fwdglm"
with the following components:
call |
the matched call. |
Residuals |
a |
Unit |
a matrix of units added (to a maximum of 5 units) at each step. |
included |
a list with each element containing a vector of units included at each step of the forward search. |
Coefficients |
a |
tStatistics |
a |
Leverage |
a |
MaxRes |
a |
MinDelRes |
a |
ScoreTest |
a |
Likelihood |
a |
CookDist |
a |
ModCookDist |
a |
Weights |
a |
inibsb |
a vector giving the best starting subset chosen by |
binary.response |
logical, equal to |
Originally written for S-Plus by:
Kjell Konis [email protected] and Marco Riani [email protected]
Ported to R by Luca Scrucca [email protected]
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Chapter 6.
summary.fwdglm
, plot.fwdglm
, fwdlm
, fwdsco
.
data(cellular) cellular$TNF <- as.factor(cellular$TNF) cellular$IFN <- as.factor(cellular$IFN) mod <- fwdglm(y ~ TNF + IFN, data=cellular, family=poisson(log), nsamp=200) summary(mod) ## Not run: plot(mod) plot(mod, 1) plot(mod, 5) plot(mod, 6, ylim=c(-3, 20)) plot(mod, 7) plot(mod, 8)
data(cellular) cellular$TNF <- as.factor(cellular$TNF) cellular$IFN <- as.factor(cellular$IFN) mod <- fwdglm(y ~ TNF + IFN, data=cellular, family=poisson(log), nsamp=200) summary(mod) ## Not run: plot(mod) plot(mod, 1) plot(mod, 5) plot(mod, 6, ylim=c(-3, 20)) plot(mod, 7) plot(mod, 8)
This function applies the forward search approach to robust analysis in linear regression models.
fwdlm(formula, data, nsamp = "best", x = NULL, y = NULL, intercept = TRUE, na.action, trace = TRUE)
fwdlm(formula, data, nsamp = "best", x = NULL, y = NULL, intercept = TRUE, na.action, trace = TRUE)
formula |
a symbolic description of the model to be fit. The details of the model are the same as for lm. |
data |
an optional data frame containing the variables in the model. By default the variables are taken from the environment from which the function is called. |
nsamp |
the initial subset for the forward search in linear regression is found by fitting the regression model with the R function |
x |
A matrix of predictors values (if no formula is provided). |
y |
A vector of response values (if no formula is provided). |
intercept |
Logical for the inclusion of the intercept (if no formula is provided). |
na.action |
a function which indicates what should happen when the data contain |
trace |
logical, if |
The function returns an object of class "fwdlm"
with the following components:
call |
the matched call. |
Residuals |
a |
Unit |
a matrix of units added (to a maximum of 5 units) at each step. |
included |
a list with each element containing a vector of units included at each step of the forward search. |
Coefficients |
a |
tStatistics |
a |
CookDist |
a |
ModCookDist |
a |
Leverage |
a |
S2 |
a |
MaxRes |
a |
MinDelRes |
a |
StartingModel |
a |
Originally written for S-Plus by:
Kjell Konis [email protected] and Marco Riani [email protected]
Ported to R by Luca Scrucca [email protected]
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Chapters 2-3.
summary.fwdlm
, plot.fwdlm
, fwdsco
, fwdglm
, lmsreg
.
library(MASS) data(forbes) plot(forbes, xlab="Boiling point", ylab="Pressure)") mod <- fwdlm(100*log10(pres) ~ bp, data=forbes) summary(mod) ## Not run: plot(mod) plot(mod, 1) plot(mod, 6, ylim=c(-3, 1000))
library(MASS) data(forbes) plot(forbes, xlab="Boiling point", ylab="Pressure)") mod <- fwdlm(100*log10(pres) ~ bp, data=forbes) summary(mod) ## Not run: plot(mod) plot(mod, 1) plot(mod, 6, ylim=c(-3, 1000))
This function applies the forward search approach to the Box-Cox transformation of response in linear regression models.
fwdsco(formula, data, nsamp = "best", lambda = c(-1, -0.5, 0, 0.5, 1), x = NULL, y = NULL, intercept = TRUE, na.action, trace = TRUE)
fwdsco(formula, data, nsamp = "best", lambda = c(-1, -0.5, 0, 0.5, 1), x = NULL, y = NULL, intercept = TRUE, na.action, trace = TRUE)
formula |
a symbolic description of the model to be fit. The details of the model are the same as for lm. |
data |
an optional data frame containing the variables in the model. By default the variables are taken from the environment from which the function is called. |
nsamp |
the initial subset for the forward search in linear regression is found by fitting the regression model with the R function |
lambda |
a vector (or a single numerical value) of lambda values for the response transformation. |
x |
A matrix of predictors values (if no formula is provided). |
y |
A vector of response values (if no formula is provided). |
intercept |
Logical for the inclusion of the intercept (if no formula is provided). |
na.action |
a function which indicates what should happen when the data contain |
trace |
logical, if |
The function returns an object of class"fwdsco"
with the following components:
call |
the matched call. |
Likelihood |
a |
ScoreTest |
a |
Unit |
a list with an element for each lambda values. Each element provides a matrix of units added (to a maximum of 5 units) at each step of the forward search. |
Input |
a list with |
x |
The design matrix. |
y |
The vector for the response. |
Originally written for S-Plus by:
Kjell Konis [email protected] and Marco Riani [email protected]
Ported to R by Luca Scrucca [email protected]
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Chapter 4.
summary.fwdsco
, plot.fwdsco
, fwdlm
, fwdglm
.
data(wool) mod <- fwdsco(y ~ x1 + x2 + x3, data = wool) summary(mod) plot(mod, plot.mle=FALSE) plot(mod, plot.Sco=FALSE, plot.Lik=TRUE)
data(wool) mod <- fwdsco(y ~ x1 + x2 + x3, data = wool) summary(mod) plot(mod, plot.mle=FALSE) plot(mod, plot.Sco=FALSE, plot.Lik=TRUE)
The hawkins
data frame has 128 rows and 9 columns.
data(hawkins)
data(hawkins)
This data frame contains the following columns:
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.4
Kinetics data (from Becton-Dickenson)
The kinetics
data frame has 19 rows and 5 columns.
data(kinetics)
data(kinetics)
This data frame contains the following columns:
substrate indicator
Inhibitor concentration
Inhibitor concentration
Inhibitor concentration
Inhibitor concentration
initial velocity
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.12
The lakes
data frame has 29 rows and 3 columns.
data(lakes)
data(lakes)
This data frame contains the following columns:
average influent nitrogenon concentration
water retention time
mean annual nitrogen concentration
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.14
The leafpine
data frame has 70 rows and 3 columns.
data(leafpine)
data(leafpine)
This data frame contains the following columns:
girth
height
volume
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.10
This function computes the Least Median Square robust fit for generalized linear models using deviance residuals.
lmsglm(x, y, family, weights, offset, n.samples = 100, max.samples = 200, epsilon = 1e-04, maxit = 50, trace = FALSE)
lmsglm(x, y, family, weights, offset, n.samples = 100, max.samples = 200, epsilon = 1e-04, maxit = 50, trace = FALSE)
x |
a matrix or data frame containing the explanatory variables. |
y |
the response: a vector of length the number of rows of |
family |
a description of the error distribution and link function to be used in the model. See |
weights |
an optional vector of weights to be used in the fitting process. |
offset |
optional, a priori known component to be included in the linear predictor during fitting. |
n.samples |
number of good subsets to fit. It can be a numeric value or |
max.samples |
maximal number of subsets to fit. By default is set to twice |
epsilon |
positive convergence tolerance epsilon. See |
maxit |
integer giving the maximal number of IWLS iterations. See |
trace |
logical, if |
This function is used by fwdglm
to select the
starting subset for the forward search. For this reason, users do not
generally need to use it.
The function returns a list with the following components:
bsb |
a vector giving the best subset found |
dev.res |
a vector giving the deviance residuals for all the observations |
message |
a short message about the status of the algorithm |
model |
the model provided by |
Originally written for S-Plus by:
Kjell Konis [email protected] and Marco Riani [email protected]
Ported to R by Luca Scrucca [email protected]
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Chapter 6.
fwdglm
, fwdlm
, lmsreg
, fwdsco
.
The mice
data frame has 14 rows and 4 columns.
data(mice)
data(mice)
This data frame contains the following columns:
dose level
factor preparation: 0= Standard preparation, 1= Test preparation
number with convultion
Total
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.21
Radioactivity versus molar concentration of nifedipene
The molar
data frame has 15 rows and 2 columns.
data(molar)
data(molar)
This data frame contains the following columns:
log10(NIF concentration)
Total counts for Molar NTD additive
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.1
The mussels
data frame has 82 rows and 5 columns.
data(mussels)
data(mussels)
This data frame contains the following columns:
width
height
length
shell mass
mass
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.9
Ozone concentration at Upland, CA.
The ozone
data frame has 80 rows and 9 columns.
data(ozone)
data(ozone)
This data frame contains the following columns:
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
Ozone concentration (ppm)
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.7
This function plots the results of a forward search analysis in generalized linear models.
## S3 method for class 'fwdglm' plot(x, which.plots = 1:11, squared = FALSE, scaled =FALSE, ylim = NULL, xlim = NULL, th.Res = 4, th.Lev = 0.25, sig.Tst =2.58, sig.score = 1.96, plot.pf = FALSE, labels.in.plot = TRUE, ...)
## S3 method for class 'fwdglm' plot(x, which.plots = 1:11, squared = FALSE, scaled =FALSE, ylim = NULL, xlim = NULL, th.Res = 4, th.Lev = 0.25, sig.Tst =2.58, sig.score = 1.96, plot.pf = FALSE, labels.in.plot = TRUE, ...)
x |
a |
which.plots |
select which plots to draw, by default all. Each graph is addressed by an integer:
|
squared |
logical, if |
scaled |
logical, if |
ylim |
a two component vector for the min and max of the y axis. |
xlim |
a two component vector for the min and max of the x axis. |
th.Res |
numerical, a threshold for labelling the residuals. |
th.Lev |
numerical, a threshold for labelling the leverages. |
sig.Tst |
numerical, a value used to draw the confidence interval on the plot of the t statistics. |
sig.score |
numerical, a value used to draw the confidence interval on the plot of the score test statistic. |
plot.pf |
logical, in case of binary response if |
labels.in.plot |
logical, if |
... |
further arguments passed to or from other methods. |
Originally written for S-Plus by:
Kjell Konis [email protected] and Marco Riani [email protected]
Ported to R by Luca Scrucca [email protected]
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Chapter 6.
## Not run: data(cellular) mod <- fwdglm(y ~ as.factor(TNF) + as.factor(IFN), data=cellular, family=poisson(log), nsamp=200) summary(mod) plot(mod) ## End(Not run)
## Not run: data(cellular) mod <- fwdglm(y ~ as.factor(TNF) + as.factor(IFN), data=cellular, family=poisson(log), nsamp=200) summary(mod) plot(mod) ## End(Not run)
This function plots the results of a forward search analysis in linear regression models.
## S3 method for class 'fwdlm' plot(x, which.plots = 1:10, squared = FALSE, scaled = TRUE, ylim = NULL, xlim = NULL, th.Res = 2, th.Lev = 0.25, sig.Tst = 2.58, labels.in.plot = TRUE, ...)
## S3 method for class 'fwdlm' plot(x, which.plots = 1:10, squared = FALSE, scaled = TRUE, ylim = NULL, xlim = NULL, th.Res = 2, th.Lev = 0.25, sig.Tst = 2.58, labels.in.plot = TRUE, ...)
x |
a |
which.plots |
select which plots to draw, by default all. Each graph is addressed by an integer:
|
squared |
logical, if |
scaled |
logical, if |
ylim |
a two component vector for the min and max of the y axis. |
xlim |
a two component vector for the min and max of the x axis. |
th.Res |
numerical, a threshold for labelling the residuals. |
th.Lev |
numerical, a threshold for labelling the leverages. |
sig.Tst |
numerical, a value (on the scale of the t statistics) used to draw the confidence interval on the plot of the t statistics. |
labels.in.plot |
logical, if |
... |
further arguments passed to or from other methods. |
Originally written for S-Plus by:
Kjell Konis [email protected] and Marco Riani [email protected]
Ported to R by Luca Scrucca [email protected]
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Chapters 2-3.
library(MASS) data(forbes) plot(forbes) mod <- fwdlm(100*log10(pres) ~ bp, data=forbes) summary(mod) ## Not run: plot(mod)
library(MASS) data(forbes) plot(forbes) mod <- fwdlm(100*log10(pres) ~ bp, data=forbes) summary(mod) ## Not run: plot(mod)
This function plots the results of a forward search analysis for Box-Cox transformation of response in linear regression models.
## S3 method for class 'fwdsco' plot(x, plot.Sco = TRUE, plot.Lik = FALSE, th.Sco = 2.58, plot.mle = TRUE, ylim = NULL, xlim = NULL, ...)
## S3 method for class 'fwdsco' plot(x, plot.Sco = TRUE, plot.Lik = FALSE, th.Sco = 2.58, plot.mle = TRUE, ylim = NULL, xlim = NULL, ...)
x |
a |
plot.Sco |
logical, if |
plot.Lik |
logical, if |
th.Sco |
numerical, a value used to draw the confidence interval on the plot of the score test statistic. |
plot.mle |
logical, if |
ylim |
a two component vector for the min and max of the y axis. |
xlim |
a two component vector for the min and max of the x axis. |
... |
further arguments passed to or from other methods. |
Originally written for S-Plus by:
Kjell Konis [email protected] and Marco Riani [email protected]
Ported to R by Luca Scrucca [email protected]
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Chapters 2-3.
## Not run: data(wool) mod <- fwdsco(y ~ x1 + x2 + x3, data = wool) plot(mod, plot.mle=FALSE) plot(mod, plot.Sco=FALSE, plot.Lik=TRUE) ## End(Not run)
## Not run: data(wool) mod <- fwdsco(y ~ x1 + x2 + x3, data = wool) plot(mod, plot.mle=FALSE) plot(mod, plot.Sco=FALSE, plot.Lik=TRUE) ## End(Not run)
Box and Cox poison data. Survival times in 10 hour units
of animals in a factorial experiment.
The poison
data frame has 48 rows and 3 columns.
data(poison)
data(poison)
This data frame contains the following columns:
a numeric vector
a factor
a factor with levels: A
, B
, C
, D
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.8
Toxoplasmosis data.
The rainfall
data frame has 34 rows and 3 columns.
data(rainfall)
data(rainfall)
This data frame contains the following columns:
mm of rain
cases of toxoplasmosis
total
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.22
The salinity
data frame has 28 rows and 4 columns.
data(salinity)
data(salinity)
This data frame contains the following columns:
Lagged salinity
Trend
Water flow
Salinity
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.6
Computes the score test statistic for the goodness of link test in generalized linear models.
scglm(x, y, family, weights, beta, phi = 1, offset)
scglm(x, y, family, weights, beta, phi = 1, offset)
x |
a matrix or data frame containing the explanatory variables. |
y |
the response: a vector of length the number of rows of |
family |
a description of the error distribution and link function to be used in the model. See |
weights |
an optional vector of weights to be used in the fitting process. |
beta |
a vector of coefficients estimates |
phi |
the dispersion parameter |
offset |
optional, a priori known component to be included in the linear predictor during fitting. |
See pag. 200–201 of Atkinson and Riani (2000).
Return the value of the score test statistic.
Originally written for S-Plus by:
Kjell Konis [email protected] and Marco Riani [email protected]
Ported to R by Luca Scrucca [email protected]
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Chapter 6.
Computes the approximate score test statistic for the Box-Cox transformation
score.s(x, y, la, tol = 1e-20) lambda.mle(x, y, init = c(-2, 2), tol = 1e-04)
score.s(x, y, la, tol = 1e-20) lambda.mle(x, y, init = c(-2, 2), tol = 1e-04)
x |
a matrix or data frame containing the explanatory variables. |
y |
the response: a vector of length the number of rows of |
la |
the value of the lambda parameter. |
tol |
tolerance value used to check for full rank matrix. |
init |
range of values to search for MLE. |
See pag. 82–86 of Atkinson and Riani (2000).
Return a list with two components:
Score |
the value of the score test statistic |
Likelihood |
the value of the likelihood |
Originally written for S-Plus by:
Kjell Konis [email protected] and Marco Riani [email protected]
Ported to R by Luca Scrucca [email protected]
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Chapter 4.
Brownlee?s stack loss data.
The stackloss
data frame has 21 rows and 4 columns.
data(stackloss)
data(stackloss)
This data frame contains the following columns:
Air flow
Cooling water inlet temperature
Acid concentration
Stack loss
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.5
summary
method for class "fwdglm"
.
## S3 method for class 'fwdglm' summary(object, steps = "auto", remove.perfect.fit = TRUE, ...)
## S3 method for class 'fwdglm' summary(object, steps = "auto", remove.perfect.fit = TRUE, ...)
object |
an object of class |
steps |
the number of forward steps to show. |
remove.perfect.fit |
logical, controlling if perfect fit steps should be removed (only apply to binary responses). |
... |
further arguments passed to or from other methods. |
Originally written for S-Plus by:
Kjell Konis [email protected] and Marco Riani [email protected]
Ported to R by Luca Scrucca [email protected]
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Chapter 6.
summary
method for class "fwdlm"
.
## S3 method for class 'fwdlm' summary(object, steps = "auto", ...)
## S3 method for class 'fwdlm' summary(object, steps = "auto", ...)
object |
an object of class |
steps |
the number of forward steps to show. |
... |
further arguments passed to or from other methods. |
Originally written for S-Plus by:
Kjell Konis [email protected] and Marco Riani [email protected]
Ported to R by Luca Scrucca [email protected]
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Chapters 2-3.
summary
method for class "fwdsco"
.
## S3 method for class 'fwdsco' summary(object, steps = "auto", lambdaMLE = FALSE, ...)
## S3 method for class 'fwdsco' summary(object, steps = "auto", lambdaMLE = FALSE, ...)
object |
an object of class |
steps |
the number of forward steps to show. |
lambdaMLE |
logical, controlling if the MLE of lambda calculated on the full dataset must be be shown. |
... |
further arguments passed to or from other methods. |
Originally written for S-Plus by:
Kjell Konis [email protected] and Marco Riani [email protected]
Ported to R by Luca Scrucca [email protected]
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Chapter 4.
Finney's data on vaso-contriction in the skin of the digits.
The vaso
data frame has 39 rows and 3 columns.
data(vaso)
data(vaso)
This data frame contains the following columns:
volume
rate
response: 0= nonoccurrence, 1= occurrence
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.23
Number of cycles to failure of samples of worsted yarn in a 33 experiment.
The wool
data frame has 27 rows and 4 columns.
data(wool)
data(wool)
This data frame contains the following columns:
factor levels: -1, 0, 1
factor levels: -1, 0, 1
factor levels: -1, 0, 1
cycles to failure a numeric vector
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Table A.3