Joe.Markov.DATA.binom {Copula.Markov}R Documentation

Generating Time Series Data Under a Copula-Based Markov Chain Model with the Joe Copula and Binomial Margin.

Description

Time-series datasets are generated under a copula-based Markov chain model with the Joe copula and binomial margin.

Usage

Joe.Markov.DATA.binom(n, size, prob, alpha)

Arguments

n

number of observations

size

number of binomial trials

prob

binomial probability; 0<p<1

alpha

association parameter

Details

alpha>=1 for positive association

Value

time series data

Author(s)

Huang X, Emura T

References

Chen W (2018) Copula-based Markov chain model with binomial data, NCU Library

Huang X, Chen W, Emura T (2019-) A control chart using a copula-based Markov chain for attribute data, revision

Examples

size=50
prob=0.5
alpha=2
set.seed(1)
Y=Joe.Markov.DATA.binom(n=500,size,prob,alpha)
### sample mean and SD ###
mean(Y)
sd(Y)
### true mean and SD ###
size*prob
sqrt(size*prob*(1-prob))

[Package Copula.Markov version 2.8 Index]