ll.ge.logistic.lin.envir: Function to output log likelihood for logistic outcome with...

Description Usage Arguments Value Examples

View source: R/power_function_linear_environment_interaction_logistic_mle.R

Description

Returns the standard deviation of y given x for linear models with linear environment interaction

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
ll.ge.logistic.lin.envir(
  sd_e,
  N = NULL,
  MAF,
  power = NULL,
  beta0,
  OR_G,
  OR_E,
  OR_GE,
  Alpha,
  True.Model,
  Test.Model
)

Arguments

sd_e

Standard deviation of the environmental variable

N

desired sample size

MAF

Vector of minor allele frequencies

power

desired power

beta0

the beta0 coefficient in the logistic model

OR_G

Vector of genetic odds ratios to detect

OR_E

Vector of environmental odds ratios to detect

OR_GE

Vector of genetic/environmental interaction odds ratios to detect

Alpha

the desired type 1 error rate(s)

True.Model

A vector specifying the true underlying genetic model(s): 'Dominant', 'Additive', 'Recessive' or 'All'

Test.Model

A vector specifying the assumed genetic model(s) used in testing: 'Dominant', 'Additive', 'Recessive' or 'All'

Value

a function to be used as the integrand for the mle

Examples

1
2
ll.ge.logistic.lin.envir(sd_e = 1, MAF = 0.2, N = 30, beta0 = -1.462531, OR_G = 1.1, 
	OR_E = 1.2, OR_GE = 1.5, Alpha = 0.05, True.Model = "Dominant", Test.Model = "Dominant")

genpwr documentation built on March 31, 2021, 1:06 a.m.