• Nenhum resultado encontrado

hcci

N/A
N/A
Protected

Academic year: 2021

Share "hcci"

Copied!
8
0
0

Texto

(1)

Package ‘hcci’

February 20, 2015

Type Package

Title Interval estimation for the parameters of linear models with heteroskedasticity (Wild Bootstrap)

Version 1.0.0 Date 2013-09-18

Maintainer Pedro Rafael Diniz Marinho <[email protected]> Description This package calculates the interval estimates for the parameters of

linear models heteroscedastic regression using bootstrap - (Wild Bootstrap) and double bootstrap-t (Wild Bootstrap). It is also possible to calculate confidence intervals using the percentile bootstrap and percentile bootstrap double. It is possible to calculate

consistent estimates of the covariance matrix of the parameters of linear regression models with heteroskedasticity of unknown form. The package also provides function to calculate consistently the covariance matrix of the parameters of linear models with heteroskedasticity of unknown form.

Depends R (>= 2.10.0)

URL http://www.r-project.org

License GPL (>= 2)

Author Pedro Rafael Diniz Marinho [aut, cre], Francisco Cribari Neto [aut, ctb] NeedsCompilation no Repository CRAN Date/Publication 2014-02-22 16:44:13

R topics documented:

hcci-package . . . 2 HC . . . 3 Pboot . . . 4 schools . . . 5 Tboot . . . 6 Index 8 1

(2)

2 hcci-package

hcci-package Interval estimation for the parameters of linear models with het-eroskedasticity of unknown form using bootstrap-t and percentile boot-strap and schemes of the double bootboot-strap.

Description

This package calculates the interval estimates for the parameters of the models linares heteroskedas-ticity regression using bootstrap-t (Wild Bootstrap) and double bootstrap-t (Wild Bootstrap). It is also possible to calculate confidence intervals using the percentile bootstrap and percentile boot-strap double. It is also possible to calculate consistent estimates of the covariance matrix of the parameters of linear regression models with heteroskedasticity of unknown form. The package also provides function to calculate consistently the covariance matrix of the parameters of linear models with heteroskedasticity of unknown form.

Details Package: hcci Type: Package Version: 1.0.0 Date: 2013-09-18 License: GPL (>=2) Author(s)

Maintainer: Pedro Rafael Diniz Marinho <[email protected]> Contributor: Francisco Cribari Neto <[email protected]>

References

Cribari-Neto, F. (2004). Asymptotic inference under heteroskedasticity of unknown form. Compu-tational Statistics and Data Analysis, 45, 215-233.

Cribari-Neto, F.; Lima, M.G. (2009). Heteroskedasticity-consistent interval estimators. Journal of Statistical Computation and Simulation, 79, 787-803;

Cribari-Neto, F.; Souza, T.C.; Vasconcellos, K.L.P. (2007). Inference under heteros- kedasticity and leveraged data. Communications in Statistics, Theory and Methods, 36, 1877-1888. [Errata: 37, 2008, 3329-3330.]

Horn, S.D.; Horn, R.A.; Duncan, D.B. (1975). Estimating heteroskedastic variances in linear mod-els. Journal of the American Statistical Association, 70, 380-385.

MacKinnon, J.G.; White, H. (1985). Some heteroskedasticity-consistent covariance matrix estima-tors with improved finite-sample properties. Journal of Econometrics, 29, 305-325.

(3)

HC 3 McCullough, B.D; Vinod, H.D. (1998). Implementing the double bootstrap, 12, 79-95.

White, H. (1980). A heteroskedasticity-consistent covariance matrix estimator and a direct test for heteroskedasticity. Econometrica, 48, 817-838.

Wu, C.F.J. (1986). Jackknife, bootstrap and other resampling methods in regression analysis, 14, 1261-1295;

HC Covariance Matrix - (HC0, HC2, HC3, HC4 and HC5)

Description

This function calculates the covariance structure for heteroskedasticity linear regression model.

Usage

HC(model, method=4, k=0.7)

Arguments

model Any object of class lm;

method Method HC that will be used to estimate the covariance structure. The argument methodmay be 0, 2, 3, 4 or 5;

k Constant used by the method HC5. The suggestion of the authors is to use k = 0.7.

Author(s)

Pedro Rafael Diniz Marinho <[email protected]>

References

Cribari-Neto, F. (2004). Asymptotic inference under heteroskedasticity of unknown form. Compu-tational Statistics and Data Analysis, 45, 215-233.

Cribari-Neto, F.; Souza, T.C.; Vasconcellos, K.L.P. (2007). Inference under heteros- kedasticity and leveraged data. Communications in Statistics, Theory and Methods, 36, 1877-1888. [Errata: 37, 2008, 3329-3330.]

Horn, S.D.; Horn, R.A.; Duncan, D.B. (1975). Estimating heteroskedastic variances in linear mod-els. Journal of the American Statistical Association, 70, 380-385.

MacKinnon, J.G.; White, H. (1985). Some heteroskedasticity-consistent covariance matrix estima-tors with improved finite-sample properties. Journal of Econometrics, 29, 305-325.

White, H. (1980). A heteroskedasticity-consistent covariance matrix estimator and a direct test for heteroskedasticity. Econometrica, 48, 817-838.

(4)

4 Pboot Examples data(schools) datas = schools[-50,] y = datas$Expenditure x = datas$Income/10000 model = lm(y ~ x) HC(model, method=4)

Pboot Percentile Bootstrap Confidence Interval (Wild Bootstrap) - Linear Models Heteroskedasticity

Description

This function calculates confidence intervals for the parameters in heteroskedasticity linear regres-sion models. The intervals are estimated by bootstrap percentile.

Usage

Pboot(model, significance=0.05, double=FALSE, J=NULL, K=NULL, distribution="rademacher")

Arguments

model Any object of class lm;

significance Significance level of the test. By default, the level of significance is 0.05; double If double = TRUE will be calculated intervals bootstrap t and double bootstrap

t. The default is double = FALSE; J Number of replicas of the first bootstrap; K Number of replicas of the second bootstrap;

distribution Distribution of the random variable with mean zero and variance one. This random variable multiplies the error estimates in the generation of the samples. The argument distribution can be rademacher or normal (standard normal). The default is distribution = rademacher.

Author(s)

Pedro Rafael Diniz Marinho <[email protected]> References

Booth, J.G. and Hall, P. (1994). Monte Carlo approximation and the iterated bootstrap. Biometrika, 81, 331-340.

Cribari-Neto, F.; Lima, M.G. (2009). Heteroskedasticity-consistent interval estimators. Journal of Statistical Computation and Simulation, 79, 787-803;

(5)

schools 5 Wu, C.F.J. (1986). Jackknife, bootstrap and other resampling methods in regression analysis, 14, 1261-1295;

McCullough, B.D; Vinod, H.D. (1998). Implementing the double bootstrap, 12, 79-95. See Also Tboot. Examples data(schools) datas = schools[-50,] y = datas$Expenditure x = datas$Income/10000 model = lm(y ~ x)

Pboot(model=model, significance = 0.05, double = FALSE, J=1000, K = 100, distribution = "rademacher")

schools US Expenditures for Public Schools

Description

Per capita expenditure on public schools and per capita income by state in 1979. Usage

data(schools)

Format

A data frame containing 51 observations of 2 variables. Expenditure per capita expenditure on public schools, Income per capita income.

References

Cribari-Neto F. (2004), Asymptotic Inference Under Heteroskedasticity of Unknown Form, Com-putational Statistics \& Data Analysis, 45, 215-233.

Greene W.H. (1993), Econometric Analysis, 3nd edition. Macmillan Publishing Company, New York.

US Department of Commerce (1979), Statistical Abstract of the United States. US Government Printing Office, Washington, DC.

(6)

6 Tboot

Tboot Bootstrap-t Confidence Interval (Wild Bootstrap) - Linear Models Het-eroskedasticity

Description

This function calculates confidence intervals for the parameters in heteroskedasticity linear regres-sion models. Ranges are estimated by the bootstrap-t and double bootstrap-t.

Usage

Tboot(model, significance=0.05, hc=4, double=FALSE, J=NULL, K=NULL, distribution="rademacher")

Arguments

model Any object of class lm;

significance Significance level of the test. By default, the level of significance is 0.05; hc Method HC that will be used to estimate the covariance structure. The argument

methodmay be 0, 2, 3, 4 or 5;

double If double = TRUE will be calculated intervals bootstrap-t and double bootstrap-t. The default is double = FALSE;

J Number of replicas of the first bootstrap; K Number of replicas of the second bootstrap;

distribution Distribution of the random variable with mean zero and variance one. This random variable multiplies the error estimates in the generation of the samples. The argument distribution can be rademacher or normal (standard normal). The default is distribution = rademacher.

Author(s)

Pedro Rafael Diniz Marinho <[email protected]>

References

Booth, J.G. and Hall, P. (1994). Monte Carlo approximation and the iterated bootstrap. Biometrika, 81, 331-340.

Cribari-Neto, F.; Lima, M.G. (2009). Heteroskedasticity-consistent interval estimators. Journal of Statistical Computation and Simulation, 79, 787-803;

Wu, C.F.J. (1986). Jackknife, bootstrap and other resampling methods in regression analysis, 14, 1261-1295;

(7)

Tboot 7 See Also Pboot. Examples data(schools) datas = schools[-50,] y = datas$Expenditure x = datas$Income/10000 model = lm(y ~ x)

Tboot(model=model, significance = 0.05, hc = 4, double = FALSE, J=1000, K = 100, distribution = "rademacher")

(8)

Index

∗Topic

bootstrap

Pboot,4 Tboot,6 ∗Topic

covariance

HC,3 ∗Topic

datasets

schools,5 ∗Topic

heteroscedasticity

hcci-package,2 Pboot,4 Tboot,6 ∗Topic

heteroskedasticity

HC,3 HC,3 hcci(hcci-package),2 hcci-package,2 Pboot,4,7 schools,5 Tboot,5,6 8

Referências

Documentos relacionados

Neste sentido, procedeu-se à escavação dos sítios de Pedreira 1 (Monção), identificado anteriormente por Manuel Ledo, Pedreira 2 (Monção), identificado em 2016

Na hepatite B, as enzimas hepáticas têm valores menores tanto para quem toma quanto para os que não tomam café comparados ao vírus C, porém os dados foram estatisticamente

The established values of rate constants for reaction and rate constants for deactivation k D , based on equation (13) allow definion of the change of catalase

The probability of attending school four our group of interest in this region increased by 6.5 percentage points after the expansion of the Bolsa Família program in 2007 and

4.1. Ratificam-se os termos das Condições Gerais que não foram expressamente alterados pela presente Cobertura Adicional... Garantir ao Segurado, até o limite máximo de

Com o objetivo de obter atratores de semigrupos em espaço de Banach de dimensão infi- nita como objetos em espaços de dimensão finita estudamos condições sobre o semigrupo que

Este modelo permite avaliar a empresa como um todo e não apenas o seu valor para o acionista, considerando todos os cash flows gerados pela empresa e procedendo ao seu desconto,

Abstract – The objectives of this study were to estimate genetic parameters for agronomic and nutritive value traits for leaves and stems of Brachiaria humidicola progenies and