bma.df2: Re-name data and call BMA function for 2-degree-of-freedom...

Description Usage Arguments Value Examples

Description

Re-name data and call BMA function for 2-degree-of-freedom Test

Usage

1
2
bma.df2(Sample = NULL, Covar = NULL, cc = 0.5, co = 0.5, phi = 1,
  psi = 1000, formul = NULL)

Arguments

Sample

input A data frame or matrix with columns in the order: "Y" "E" "G". Defaults to NULL.

Covar

input A data frame of all covariate variables. Defaults to NULL.

cc

input A number. Defaults to 0.5.

co

input A number. Defaults to 0.5.

phi

input A number. Defaults to 1.

psi

input A number. Defaults to 1000.

formul

input A string in the form: "Count~E+G+E:G+Y+E:Y+G:Y+E:G:Y+... . Defaults to NULL.

Value

A number containing the p-value for a BMA joint test of marginal and interaction effect.

Examples

1
2
3
4
5
6
7
data("Covariates")
data("Sample")
formul <- "Count~E+G+E:G+Y+E:Y+G:Y+E:G:Y+C1+C2+C3+Y:C1+Y:C2+Y:C3+E:C2"
bma.df1(Sample=Sample,Covar=Covariates,cc=0.5,co=0.5,phi=1,psi=1000,formul=NULL)
bma.df2(Sample=Sample,Covar=Covariates,cc=0.5,co=0.5,phi=1,psi=1000,formul=NULL)
bma.df1(Sample=Sample,Covar=Covariates,cc=0.5,co=0.5,phi=1,psi=1000,formul=formul)
bma.df2(Sample=Sample,Covar=Covariates,cc=0.5,co=0.5,phi=1,psi=1000,formul=formul)

LilithMoss/bma.gxe documentation built on May 28, 2019, 1:32 p.m.