built_kh: Built Krummhörn data files

Description Usage Arguments Examples

Description

This function prepares SPSS data provided by the 'Krummhörn Family Reconstitution' carried out by Voland et al. (e.g. Voland 2015) for being used with 'kinlab'.

Usage

1
2
3
built_kh(source_path = NULL, local_path = getwd(), file1 = "kindermc.sav",
  file2 = "familienmc.sav", silent = FALSE, n_sample = 10,
  force_new = FALSE, keep_files = NULL, set_seed = NULL, kinset = FALSE)

Arguments

source_path

Character string for the file path from which SPSS source(s) (e.g. 'file1') will be read.

local_path

Character string for a file path to which 'kinlab' writes produced '.RData' files.

file1

Character string for the mame of the first source file in SPSS format (i.e. '.sav').

file2

An optional character string for the mame of the second source file in SPSS format (i.e. '.sav').

silent

If TRUE, a final message giving the runtime of this function is omitted. (Default is FALSE)

n_sample

Number of random draws, if n_sample < number of observations. (Default is 100)

force_new

Should existing files be replaced? Default is FALSE

keep_files

List specific files being kept in 'local_path' in case of 'force_new=TRUE'.

set_seed

Optional random seed being to allow reproducibility? Default is null, no seed is set.

kinset

Should kin networks be computed?

Examples

1
2
3
4
## Not run: 
grap_ped(1067, df_ped)

## End(Not run)

johow/kinlab documentation built on July 5, 2019, 4:23 p.m.