squeeze.twDEMCPops: squeeze twDEMCPops

Description Usage Arguments Details Author(s) See Also Examples

Description

Reduces the rows of populations so that all populations have the same number of samples.

Usage

1
2
3
## S3 method for class 'twDEMCPops'
squeeze(x, ..., length.out = min(getNSamples(x)), 
    dropShortPops = FALSE)

Arguments

x

the twDEMCPops list to thin

...
length.out

number vector (nPops) of steps in each population, or numeric scalar specifying the lenght for all populations

dropShortPops

if set to TRUE, pops with less samples than length.out[1] are dropped

Details

components thin,Y,nGenBurnin are kept, but may be meaningless after subsetting.

Author(s)

Thomas Wutzler

See Also

subset.twDEMCPops

Examples

1
2
3
4
5
6
7
8
9
if( FALSE){
	tmp <- squeeze(res)
	getNSamples(tmp)
	tmp2 <- subPops(res,2)
	#mtrace(squeeze.twDEMCPops)
	getNSamples( squeeze(tmp2,length.out=10) )
	getNSamples( squeeze(tmp,length.out=10) )	# should produce error
	getNSamples( squeeze(tmp,length.out=10, dropShortPops=TRUE) )	# should produce error
} 

twDEMC documentation built on May 2, 2019, 5:38 p.m.