
Last chance! 50% off unlimited learning
Sale ends in
The function performs statistical hypothesis tests for nested models based on composite likelihood versions of: Wald-type, score-type and Wilks-type (likelihood ratio) statistics.
HypoTest(object1, object2, …, statistic)
An object of class FitComposite
.
An object of class FitComposite
that is a nested
model within object1
.
Further successively nested objects.
String; the name of the statistic used within the hypothesis test (see Details).
An object of class c("data.frame")
. The object contain a table
with the results of the tested models. The rows represent the
responses for each model and the columns the following results:
The number of the model's parameters.
The difference between the number of parameters of the model in the previous row and those in the actual row.
The effective number of degree of freedom of the chi-square distribution.
The observed value of the statistic.
The p-value of the quantile
Chisq
computed using a chi-squared distribution with Df
degrees
of freedom.
The implemented hypothesis tests for nested models are based on the following statistics:
Wald-type (Wald
);
Score-type, also known as Rao-type (Rao
);
Wilks-type; also known as the composite likelihood ratio statistic. Available are variants of the basic version, in particular:
Rotnitzky and Jewell adjustment (WilksRJ
);
Satterhwaite adjustment (WilksS
);
Chandler and Bate adjustment (WilksCB
);
Pace, Salvan and Sartori adjustment (WilksPSS
);
More specifically,
consider an HypoTest
assigning at the argument statistic
respectively the values: Wald
and Rao
.
Alternatively to the Wald-type and score-type statistics one can use the
composite version of the Wilks-type or likelihood ratio statistic, given by
WilksRJ
. A better
solution is proposed by Satterhwaite (1946) defining WilksS
. For the adjustments suggested by Chandler and
Bate (2007) and Pace, Salvan and Sartori (2011) we refere to the articles (see
References), these versions can be called from the routine assigning
respectively the values: WilksCB
and WilksPSS
.
Chandler, R. E., and Bate, S. (2007). Inference for Clustered Data Using the Independence log-likelihood. Biometrika, 94, 167--183.
Pace, L., Salvan, A. and Sartori, N. (2011). Adjusting Composite Likelihood Ratio Statistics. Statistica Sinica, 21, 129--148.
Rotnitzky, A. and Jewell, N. P. (1990). Hypothesis Testing of Regression Parameters in Semiparametric Generalized Linear Models for Cluster Correlated Data. Biometrika, 77, 485--497.
Satterthwaite, F. E. (1946). An Approximate Distribution of Estimates of Variance Components. Biometrics Bulletin, 2, 110--114.
Varin, C., Reid, N. and Firth, D. (2011). An Overview of Composite Likelihood Methods. Statistica Sinica, 21, 5--42.
# NOT RUN {
# Please remove the symbol hashtag to run the code
library(CompRandFld)
library(RandomFields)
set.seed(3451)
# Define the spatial-coordinates of the points:
x <- runif(300, 0, 10)
y <- runif(300, 0, 10)
################################################################
###
### Example 1. Composite likelihood-based hypothesis testing.
### Simulation of a Gaussian spatial random field with
### stable correlation.
### Estimation by composite likelihood using the setting:
### marginal pairwise likelihood objects.
###
###############################################################
# Set the model's parameters:
corrmodel <- "stable"
mean <- 0
sill <- 1
nugget <- 1
scale <- 1
power <- 1.3
# Simulation of the spatial Gaussian random field:
data <- RFsim(x, y, corrmodel=corrmodel, param=list(mean=mean,
sill=sill,nugget=nugget,scale=scale,power=power))$data
# Maximum composite-likelihood fitting of the random field, full model:
fit1 <- FitComposite(data, x, y, corrmodel=corrmodel, maxdist=5,
varest=TRUE,start=list(mean=mean,power=power,scale=scale,sill=sill),
fixed=list(nugget=1))
# Maximum composite-likelihood fitting of the random field, first nasted model:
fit2 <- FitComposite(data, x, y, corrmodel=corrmodel, maxdist=5,
varest=TRUE,start=list(mean=mean,power=power,scale=scale),
fixed=list(nugget=1,sill=1))
# Maximum composite-likelihood fitting of the random field, second nasted model:
fit3 <- FitComposite(data, x, y, corrmodel=corrmodel, maxdist=5,
varest=TRUE,start=list(scale=scale),
fixed=list(nugget=1,sill=1,mean=0,power=1.3))
# Hypothesis testing results:
# composite Wald-type statistic:
HypoTest(fit1, fit2, fit3, statistic='Wald')
# composite score-type statistic:
HypoTest(fit1, fit2, fit3, statistic='Rao')
# composite likelihood ratio statistic with RJ adjustment:
HypoTest(fit1, fit2, fit3, statistic='WilksRJ')
# composite likelihood ratio statistic with S adjustment:
HypoTest(fit1, fit2, fit3, statistic='WilksS')
# composite likelihood ratio statistic with CB adjustment:
HypoTest(fit1, fit2, fit3, statistic='WilksCB')
# composite likelihood ratio statistic with PSS adjustment:
HypoTest(fit1, fit2, fit3, statistic='WilksPSS')
# }
Run the code above in your browser using DataLab