Learn R Programming

Biograph (version 1.0)

p.Trans: Prints transitions

Description

Prints overview of transitions, mean ages at transition, transitions by origin, destination and age, and table with input for rate calculation (Stable)

Usage

p.Trans(trans, ratetable, path, filnam.trans, filnam.Stable)

Arguments

trans
Object produced by Trans object
ratetable
Object produced by RateTable
path
path to directory where output should be saved
filnam.trans
Name of output file with rates
filnam.Stable
Name of output file with Stable object

Examples

Run this code
data (GLHS)
	z<- Parameters(GLHS)
	occup <- Occup (GLHS)
	ist <- statesequence.ind (GLHS)
	trans <- Trans (GLHS,seq.ind=ist)
    ratetable <- RateTable (survey=GLHS, occup=occup,trans=trans)
    path1 <- getwd() # save output in current directory
	trans.p <- p.Trans (trans=trans,ratetable=ratetable,path=path1, filnam.trans="trans1.out",filnam.Stable="Stable.out")

Run the code above in your browser using DataLab