diag.RBS: Diagnostic Analysis - Local Influnce

Description Usage Arguments Value Author(s) References Examples

View source: R/influence.R

Description

Diagnostics for the RBS model

Usage

1
2
3
4
5
6
7
8
diag.RBS(
  model,
  mu.link = "identity",
  sigma.link = "identity",
  scheme = "case.weight",
  lx = NULL,
  lz = NULL
)

Arguments

model

Object of class gamlss holding the fitted model.

mu.link

Defines the mu.link, with "identity" link as the default for the mu parameter.

sigma.link

Defines the sigma.link, with "identity" link as the default for the sigma parameter

scheme

Default is "case.weight". But, can be "response", "location" or "precision".

lx

Used in the scheme 'location'.

lz

Used in the scheme 'precision'.

Value

Local influence measures.

Author(s)

Manoel Santos-Neto manoel.ferreira@ufcg.edu.br, F.J.A. Cysneiros cysneiros@de.ufpe.br, Victor Leiva victorleivasanchez@gmail.com and Michelli Barros michelli.karinne@gmail.com

References

Leiva, V., Santos-Neto, M., Cysneiros, F.J.A, Barros, M. (2014) Birnbaum-Saunders statistical modelling: a new approach. Statistical Modelling, v. 14, p. 21-48, 2014.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(cpd,package='faraway')
attach(cpd)
fit = gamlss::gamlss(actual ~ 0+projected,
family=RBS(mu.link="identity",sigma.link="identity"),method=CG())
Cib <- diag.RBS(fit)$Ci.beta
plot(Cib,ylim=c(0,1),pch=19,ylab=expression(C[i](beta)),xlab="Index")
abline(h=2*mean(Cib),lty=2)
Cia <- diag.RBS(fit)$Ci.alpha
plot(Cia,ylim=c(0,1),pch=19,ylab=expression(C[i](beta)),xlab="Index")
abline(h=2*mean(Cia),lty=2)

santosneto/RBS documentation built on Feb. 5, 2021, 2:12 p.m.