sim_setup: Sets up necessary parameters for power calculation simulation

Description Usage Arguments Value

Description

Support function for pstest(), which runs the power calculations that are wrapped in pst_sim(). Sets up objects needed to do power calculation.

Usage

1
2
sim_setup(nsim = 500, seed = 2019, n = 100, p = 1000,
  model = "normal", sigma = 1, rho = 0.9, rs = c(10, 20, 50))

Arguments

nsim

defaults to 500

seed

set a seed for the generation of matrices needed for the various tests, defaults to 2019

n

defaults to 100

p

defaults to 1000

model

can be specified as 'normal' (default) for linear regression, otherwise does logistic regression

sigma

defaults to 1

rho

spatial correlation in G parameter, AR1 structure, defaults to 0.9

rs

investigator-specified set of "contrasts" of G, defaults to c(10, 20, 50)

Value

A list including spatial correlation parameters, empty dataframes for simresults and powresults, parameters for distribution of SKAT statistic


carolynlou/pstestr documentation built on June 3, 2019, 6:21 p.m.