create_scaling_matrices: Creates matrices for scaling CoMix by POLYMOD

Description Usage Arguments

View source: R/create_scaling_matrices.R

Description

Take two matrices split them if required to be of the same size and square Then take the ratio of the maximum eigenvalues

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
create_scaling_matrices(
  comix_survey,
  polymod_survey,
  nboots,
  matrices_path,
  file_name,
  age_limits = c(0, 5, 18, 30, 40, 50, 60, 70),
  age_limits_sym = c(18, 30, 40, 50, 60, 70),
  observed = FALSE,
  phys = FALSE,
  ...
)

Arguments

comix_survey

Survey object for CoMix.

polymod_survey

Survey object for POLYMOD.

matrices_path

File path where the matrices should be saved.

file_name

Name of file for multiple matrices to be save into.

observed

Logical parameter, defaulted to FALSE, for saving the observed contact matrices function.

phys

Logical parameter, defaulted to false, if true then only physical contacts are returned.

...

passed onto 'create_cm'phys Logical parameter, defaulted to false, if true then only physical contacts are returned.

split2

Logical parameter, defaulted to FALSE, for splitting the second matrix.


jarvisc1/CoMix documentation built on April 24, 2020, 2:06 a.m.