simulateAPFA: Simulation of data from an APFA model

Description Usage Arguments Details Value Author(s) Examples

View source: R/APFAfunctions.R

Description

The function draws a number of independent samples from the given APFA model.

Usage

1
simulateAPFA(g, Nsim = 1000)

Arguments

g

is an APFA model from which the samples are drawn.

Nsim

is the number of simulations.

Details

The function simulates the data from an APFA model using the edge probabilities.

Value

A data frame containing the simulated data.

Author(s)

Smitha Akinakatte and David Edwards

Examples

1
2
3
4
5
library(gRapfa)
data(Wheeze)
G <- select.IC(Wheeze)
simWheeze <- simulateAPFA(G)
head(simWheeze)

gRapfa documentation built on May 2, 2019, 6:54 a.m.