Package mlma. July 14, 2016

Size: px
Start display at page:

Download "Package mlma. July 14, 2016"

Transcription

1 Package mlma July 14, 2016 Type Package Title ultilevel ediation Analysis Version Date Author Qingzhao u, Bin Li aintainer Qingzhao u <qyu@lsuhsc.edu> Depends R (>= ), lme4, splines, car, gplots Do multilevel mediation analysis with generalized additive multilevel models. License GPL (>= 2) URL NeedsCompilation no Repository CRAN Date/Publication :28:34 R topics documented: mlma-package boot.mlma data.org mlma plot.mlma plot.mlma.boot print.mlma sim sim summary.mlma summary.mlma.boot Index 20 1

2 2 mlma-package mlma-package ultilevel ediation Analysis Details The package is used to do mediation analysis with generalized multilevel models. Package: mlma Type: Package Version: 1.0 Date: License: GPL (>= 2) "data.org" is used to transorm the variables and organize the predictor, mediators and outcome into the ormat that are ready to be used or multilevel mediation analysis. "mlma" is or multilevel mediation analysis on the original data set. "boot.mlma" is a combined unction that organized data set, do multilevel mediation analysis on original data sets and bootstrapping samples. The multilevel mediation is based on the ollowing linear multilevel additive models: K ij = u 0j(X.j,.j, Z.j )+β10t 10 (X ij X.j )+ β20kt 20k ( ijk.jk )+β30t (Zij Z.j )+rij, where u 0j(X.j,.j, Z.j ) = c 00 + β 01T 01 (X.j ) + For k = 1,..., K, k=1 K β02kt 02k (.jk ) + β03t Z.j + r0j. k=1.jk = u 0jk(X.j ) + β 10kT 10k (X ij X.j ) + r ijk, u 0jk(X.j ) = c 00k + β01k T 1 01k (X.j ) + r0jk. I or some k, k is level 2 variable,.jk = c 00k + β01k T 2 01k (X.j ) + r0jk. Note that in the models, ( ) = ( 1 ( ), 2 ( ),, l ( )) T is a set o l transormation unctions on, with the corresponding linear coeicients vector β = (β 1, β 2,, β l ) T. and l are known or model itting. l may be dierent with o dierent sub- and super-scripts. Author(s) Qingzhao u <qyu@lsuhsc.edu>, Bin Li <bli@lsu.edu> aintainer: Qingzhao u <qyu@lsuhsc.edu>

3 boot.mlma 3 boot.mlma Bootstrap ethod or Inerence on ultilevel ediation Analysis Bootstrap samples are selected rom the original data set. The bootstrap sample has the same number o groups and in each group, the same number o observations as in the original data set. Based on each bootstrap sample, a multilevel mediation analysis is done and the results saved to make inerences on the total, direct and indirect eects. Usage boot.mlma(y, biny = FALSE, x, levelx, levely, m, l1 = NULL, l2 = NULL, c1 = NULL, c1r = rep(1, length(c1)), c2 = NULL, c2r = rep(1, length(c2)), 01y = NULL, 10y = NULL, 02ky = NULL, 20ky = NULL, 01km1 = NULL, 01km2 = NULL, 10km = NULL, level=1:length(y), weight = rep(1, length(x)), random = "(1 level)", random.m1 = NULL, intercept = TRUE, w2=rep(1,length(unique(level[!is.na(level)]))), boot = 100, seed = 1, covariates=null,cy1=null,cy2=null,cm=null, joint=null,x.new=x, m.new=m, level.new=level,weight.new=weight, covariates.new=covariates) Arguments y biny x levelx levely m the vector o the outcome variable. True i the outcome is binary, otherwise False. Deault is False. the vector o the predictive variable. the level o x (1 or 2), 1 by deault. the level o y (1 or 2), 1 by deault. the matrix or vector o mediators. l1 the column numbers o level 1 continuous mediators in m. l2 the column numbers o level 2 continuous mediators in m. c1 the column numbers o level 1 categorical mediators in m. c1r the reerence groups o categorical mediators speciied by c1. c2 the column numbers o level 2 categorical mediators in m. c2r the reerence groups o categorical mediators speciied by c2. 01y 10y the transormation unction expressions on level 2 predictive variable (x.j) in explaining y (eg, c("x^2","log(x)")). the transormation unction expressions on level 1 predictive variable (xij-x.j) in explaining y.

4 4 boot.mlma 02ky 20ky 01km1 01km2 10km level weight random random.m1 intercept w2 boot the transormation-unction-expression list on level 2 mediators (m.jk) in explaining y (eg, list(2:3,c("log(x)","sqrt(x)"), "2*x")). The irst item lists column numbers o the level 2 mediators in m, which needs to be transormed. By that order, each o the rest items o 01ky list the transormation unctional expressions or each mediator. The mediators not speciied in the list will not be transormed in any way. the transormation-unction-expression list on level 1 mediators (mijk-m.jk) in explaining y.the irst item lists column numbers o the level 1 mediators in m, which needs to be transormed. By that order, each o the rest items o 02ky list the transormation unctional expressions or each mediator. The mediators not speciied in the list will not be transormed in any way. the transormation-unction-expression list on level 2 predictor (x.j) in explaining the level 1 mediators. The irst item lists column numbers o the level 1 mediators in m, which should be explained by the transormed predictor(s). By that order, each o the rest items o 01km1 lists the transormation unctional expressions or the (aggregated) level 2 predictor in explaining each mediator. The mediators not speciied in the list will be explained by the original ormat o the level 2 predictor only. the transormation-unction-expression list on level 2 predictor (x.j) in explaining the level 2 mediators. The irst item lists column numbers o the level 2 mediators in m, which should be explained by the transormed level 2 predictor(s). By that order, each o the rest items o 01km2 lists the transormation unctional expressions or the predictor in explaining each mediator. The mediators not speciied in the list will be explained by the original ormat o the (aggregated) level 2 predictor only. the transormation-unction-expression list on level 1 predictor (xij-x.j) in explaining the level 1 mediators. The irst item lists column numbers o the level 1 mediators in m, which should be explained by the transormed level 1 predictor(s). By that order, each o the rest items o 10km lists the transormation unctional expressions or the level 1 predictor in explaining each mediator. The mediators not speciied in the list will be explained by the original ormat o the level 1 predictor only. a vector that record the group number or each observation. the weight o cases in groups. the random eect part or the ull model. random = "(1 level)" by deault. the random eect part or model explaining the mediators. All other random eects are random = "(1 level)" i not speciied here. True i it an intercept to models, by deault. the weight or observations at level 2, which should be the same order as unique(level[!is.na(level)]). the number o bootstrapping samples. seed set seed, deault is 1. covariates the covariates matrix to explain the outcome, y, and/or the mediators, m. cy1 the column numbers o covariates that are level 1 and used to explain y. cy2 the column numbers o covariates that are level 2 and used to explain y.

5 boot.mlma 5 cm Details the column numbers o covariates that are used to explain m. cm[[1]] gives the mediators (in l1, cl, l2, or c2) that can be partially explained by covariates. Each o the rest items o the cm list shows the column number(s) in covariates that should be used to explain each mediator listed in cm[[1]] and by that order.for example, joint=list(1,c("m.2","m.4")) means ind the joint eects o level 1 mediators m.2 and m.4. joint the list o group(s) o mediators whose joint mediation eect is o interests. joint[[1]] list the levels o mediators in each group and by the order o the list. Note that i any mediator in the group is o level 2, the level o the group should be 2. x.new, covariates.new, m.new, level.new, weight.new the settings that we want to make inerences on the mediation eects. I m.new=null, generate new mediators rom x.new. The multilevel mediation is based on the ollowing linear multilevel additive models: K ij = u 0j(X.j,.j, Z.j )+β10t 10 (X ij X.j )+ β20kt 20k ( ijk.jk )+β30t (Zij Z.j )+rij, where u 0j(X.j,.j, Z.j ) = c 00 + β 01T 01 (X.j ) + For k = 1,..., K, I or some k, k is level 2 variable, k=1 K β02kt 02k (.jk ) + β03t Z.j + r0j. k=1.jk = u 0jk(X.j ) + β 10kT 10k (X ij X.j ) + r ijk, u 0jk(X.j ) = c 00k + β01k T 1 01k (X.j ) + r0jk..jk = c 00k + β01k T 2 01k (X.j ) + r0jk. Note that in the models, ( ) = ( 1 ( ), 2 ( ),, l ( )) T is a set o l transormation unctions on, with the corresponding linear coeicients vector β = (β 1, β 2,, β l ) T. and l are known or model itting. l may be dierent with o dierent sub- and super-scripts. Value Return a "mlma.boot" mode list, which include the ollowing items: de1 de2 an n by boot matrix, where each column is the level 1 direct eects rom one bootstrap sampling. n is the number o observations in the original data. an g by boot matrix, where each column is the level 2 direct eects rom one bootstrap sampling. g is the number o groups in the original data.

6 6 data.org ie1 ie1 ie12 sum.boot1 sum.boot2 ull xboot xjboot levelx level an v1 by n*boot matrix, where each column is the level 1 indirect eects rom the boot bootstrap samples or one level 1 mediator. v1 is the number o level 1 mediators. an v2 by g*boot matrix, where each column is the level 2 indirect eects rom the boot bootstrap samples or one level 2 mediator. v2 is the number o level 2 mediators. an v1 by g*boot matrix, where each column is the aggregated level 2 indirect eects rom the boot bootstrap samples or one level 1 mediator. v1 is the number o level 1 mediators. summary results o level 1 mediation eects rom bootstrap sample. summary results o level 2 mediation eects rom bootstrap sample. an "mlma" results using the original data set. a n*boot vector o the level 1 predictors in all boot bootstrap samples. a g*boot vector o the (aggregated) level 2 predictors in all boot bootstrap samples. inherited rom the same argument. inherited rom the same argument. Author(s) Qingzhao u (qyu@lsuhsc.edu), Bin Li (bli@lsu.edu). Examples data(sim.111) temp111<-boot.mlma(y=sim.111$y, biny=false, sim.111$x, levelx=1, m=sim.111$m, l1=1:2, c1=3,c1r=1, 01y=c("x","log(x^2)"), 10y=c("x^2","sqrt(x+6)"), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 10km=list(2,"log(x+2)"), level=sim.111$level, boot=2) data(sim.211) temp211<-boot.mlma(y=sim.211$y, biny=false, x=sim.211$x, levelx=2, m=sim.211$m, l1=2,l2=1, c1=3,c1r=1, 01y=c("x","log(x^2)"), 02ky=list(1,c("x","x^2")), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 01km2=list(1,c("x^1.2","x^2.3")), level=sim.211$level, boot=2) data.org Transorm and Organize Data or ediation Analysis To transorm variables and generate data sets or mediation analysis.

7 data.org 7 Usage data.org(x, levelx=1, levely=1, m, l1 = NULL, l2 = NULL, c1 = NULL, c1r = rep(1, length(c1)), c2 = NULL, c2r = rep(1, length(c2)), 01y = NULL, 10y = NULL, 02ky = NULL, 20ky = NULL, 01km1 = NULL, 01km2 = NULL, 10km = NULL, level=1:length(x), weight = rep(1, length(x))) Arguments x levelx levely m l1 l2 c1 the vector o the predictive variable. the level o x (1 or 2), 1 by deault. the level o y (1 or 2), 1 by deault. the matrix or vector o mediators. the column numbers o level 1 continuous mediators in m or the list o names o the level 1 continuous mediators. the column numbers o level 2 continuous mediators in m or the list o names o the level 2 continuous mediators. the column numbers o level 1 categorical mediators in m or the list o names o the level 1 categorical mediators. c1r the reerence groups o categorical mediators speciied by c1. c2 the column numbers o level 2 categorical mediators in m or the list o names o the level 2 categorical mediators. c2r the reerence groups o categorical mediators speciied by c2. 01y 10y 02ky 20ky 01km1 the transormation unction expressions on level 2 predictive variable (x.j) in explaining y (eg, c("x^2","log(x)")). the transormation unction expressions on level 1 predictive variable (xij-x.j) in explaining y. the transormation-unction-expression list on level 2 mediators (m.jk) in explaining y (eg, list(2:3,c("log(x)","sqrt(x)"), "2*x")). The irst item lists column numbers/variable names o the level 2 mediators in m, which needs to be transormed. By that order, each o the rest items o 01ky list the transormation unctional expressions or each mediator. The mediators not speciied in the list will not be transormed in any way. the transormation-unction-expression list on level 1 mediators (mijk-m.jk) in explaining y.the irst item lists column numbers/variable names o the level 1 mediators in m, which needs to be transormed. By that order, each o the rest items o 02ky list the transormation unctional expressions or each mediator. The mediators not speciied in the list will not be transormed in any way. the transormation-unction-expression list on level 2 predictor (x.j) in explaining the level 1 mediators. The irst item lists column numbers/variable names o the level 1 mediators in m, which should be explained by the transormed predictor(s). By that order, each o the rest items o 01km1 lists the transormation unctional expressions or the (aggregated) level 2 predictor in explaining each mediator. The mediators not speciied in the list will be explained by the original ormat o the level 2 predictor only.

8 8 data.org 01km2 10km level weight the transormation-unction-expression list on level 2 predictor (x.j) in explaining the level 2 mediators. The irst item lists column numbers/variable names o the level 2 mediators in m, which should be explained by the transormed level 2 predictor(s). By that order, each o the rest items o 01km2 lists the transormation unctional expressions or the predictor in explaining each mediator. The mediators not speciied in the list will be explained by the original ormat o the (aggregated) level 2 predictor only. the transormation-unction-expression list on level 1 predictor (xij-x.j) in explaining the level 1 mediators. The irst item lists column numbers/variable names o the level 1 mediators in m, which should be explained by the transormed level 1 predictor(s). By that order, each o the rest items o 10km lists the transormation unctional expressions or the level 1 predictor in explaining each mediator. The mediators not speciied in the list will be explained by the original ormat o the level 1 predictor only. a vector that record the group number or each observation. the weight o cases in groups. Details The arguments starting with "" are used to speciy the transormation unctions o the predictor or mediators in explaining y, or the transormation unctions o the predictor in explaining the mediators. I the name o the argument includes a "k", the transormation is on the mediators. I the names o the arguments end with "y", the transormation is to explain the outcome. Otherwise, the transormation is on x to predict mediators (the argument ends with "m1" or "m" (or level 1 mediator), or "m2" (or level 2 mediator)). The unctions corresponds to the unctions in the ollowing multilevel additive models, reading as +subscript+superscript. For example, 01y speciies 01. K ij = u 0j(X.j,.j, Z.j )+β10t 10 (X ij X.j )+ β20kt 20k ( ijk.jk )+β30t (Zij Z.j )+rij, where u 0j(X.j,.j, Z.j ) = c 00 + β 01T 01 (X.j ) + For k = 1,..., K, I or some k, k is level 2 variable, k=1 K β02kt 02k (.jk ) + β03t Z.j + r0j. k=1.jk = u 0jk(X.j ) + β 10kT 10k (X ij X.j ) + r ijk, u 0jk(X.j ) = c 00k + β01k T 1 01k (X.j ) + r0jk..jk = c 00k + β01k T 2 01k (X.j ) + r0jk. The transormation unction can be any unction that is dierentiable by the unction deriv(), or the ielse unction with those unctions. The transormation unction can also be the ns() and bs() unctions or natural and b spline basis.

9 data.org 9 Value The unction returns a list with transormed and organized data with the ollowing items: x1 the level 1 and 2 transormed predictor variable matrix in explaining y (eg, 01y(x.j) & 10y(xij-x.j)). l1x the column numbers o level 1 predictors in x1. l2x the column numbers o level 2 predictors in x1. m1y m1 m2y m2 m12 xm1 m11 the level 1 mediator matrix in explaining y (eg, 20ky(mijk-m.jk) & mijk or binarized mijk or categorical mediators). a list where the irst item identiy column numbers o level 1 mediators in m (eg l1 and c1). For every mediator identiied by m1[[1]] and by that order, each o the rest item identiy the column number(s) in m1y the (transormed) value(s) o the mediator in explaining y. the level 2 mediator (original or aggregated) matrix in explaining y (eg, 02ky(m.jk) & m.jk). a list where the irst item identiy column numbers o level 2 mediators in m (eg l2 and c2). For every mediator identiied by m2[[1]] and by that order, each o the rest item identiy the column number(s) in m2y the (transormed) value(s) o the mediator in explaining y. a list where the irst item identiy column numbers o aggregated level 2 mediators in m (eg, aggregated 20ky). For every mediator identiied by m12[[1]] and by that order, each o the rest item identiy the column number(s) in m2y the aggregated value(s) o the mediator in explaining y. the (transormed) level 1 and level 2 predictor(s) in explaining level 1 mediators. a list where the irst item identiy column numbers o level 1 mediators in m. For every mediator identiied by m11[[1]] and by that order, each o the rest item identiy the column number(s) in xm1 the (transormed) level 1 predictor(s) in explaining the mediator. m12 a list where the irst item identiy column numbers o level 1 mediators in m. For every mediator identiied by m12[[1]] and by that order, each o the rest item identiy the column number(s) in xm1 the (transormed/aggregated) level 2 predictor(s) in explaining the mediator. m.2 a matrix o level 2 mediators (one row or each group). xm2 m22 the (transormed/aggregated) level 2 predictor(s) in explaining level 2 mediators (one row or each group). a list where the irst item identiy column numbers o level 2 mediators in m. For every mediator identiied by m22[[1]] and by that order, each o the rest item identiy the column number(s) in xm2 the (transormed) level 2 predictor(s) in explaining the mediator. x1.der, m2y.der, m1y.der, xm2.der, xm1.der the derivative o x1, m2y, m1y, xm2, and xm1 respectively. parameter The list o arguments used.

10 10 mlma Author(s) Qingzhao u (qyu@lsuhsc.edu), Bin Li (bli@lsu.edu). Examples data(sim.211) example1<-data.org(x=sim.211$x, levelx=2, m=sim.211$m, l1=2,l2=1, c1=3, c1r=1, 01y=c("x","log(x^2)"), 02ky=list(1,c("x","x^2")), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 01km2=list(1,c("x^1.2","x^2.3")), level=sim.211$level) data(sim.111) example2<-data.org(sim.111$x, levelx=1, m=sim.111$m, l1=1:2, c1=3, c1r=1, 01y=c("x","log(x^2)"), 10y=c("x^2","sqrt(x+6)"), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 10km=list(2,"log(x+2)"), level=sim.111$level) mlma ultilevel ediation Analysis Usage The unction transorms the data set and does multilevel mediation analysis. The total, direct, and indirect eects will be returned as the results. mlma(y, biny=false, data1=null, x, levelx=1, levely=1, m, l1=null, l2=null,c1=null,c1r=rep(1,length(c1)), c2=null, c2r=rep(1,length(c2)), level=1:length(y),weight=rep(1,length(x)), random="(1 level)", random.m1=null,intercept=true,covariates=null,cy1=null,cy2=null,cm=null, joint=null,org.data=false,01y=null,10y=null,02ky=null,20ky=null, 01km1=NULL,01km2=NULL,10km=NULL) Arguments y biny data1 x levelx levely m the vector o the outcome variable. True i the outcome is binary, otherwise False. Deault is False. The transormed and organized data set rom data.org. I the data set has not been organized, leave data1=null (by deault), and set org.data=t with the transormation unctions ( arguments). Otherwise, set data1 as the output rom the data.org unction and do not include the arguments: org.data and s. the vector o the predictive variable. the level o x (1 or 2), 1 by deault. the level o y (1 or 2), 1 by deault. the matrix or vector o mediators.

11 mlma 11 l1 l2 c1 the column numbers o level 1 continuous mediators in m or the list o names o the level 1 continuous mediators. the column numbers o level 2 continuous mediators in m or the list o names o the level 2 continuous mediators. the column numbers o level 1 categorical mediators in m or the list o names o the level 1 categorical mediators. c1r the reerence groups o categorical mediators speciied by c1. c2 the column numbers o level 2 categorical mediators in m or the list o names o the level 2 categorical mediators. c2r the reerence groups o categorical mediators speciied by c2. level weight random random.m1 intercept a vector that record the group number or each observation. the weight o cases in groups. the random eect part or the ull model. random = "(1 level)" by deault. the random eect part or model explaining the mediators. All other random eects are random = "(1 level)" i not speciied here. True i it an intercept to models, by deault. covariates the covariates matrix to explain the outcome, y, and/or the mediators, m. cy1 the column numbers o covariates that are level 1 and used to explain y. cy2 the column numbers o covariates that are level 2 and used to explain y. cm Details joint the column numbers o covariates that are used to explain m. cm[[1]] gives the mediators (in l1, cl, l2, or c2) that can be partially explained by covariates. Each o the rest items o the cm list shows the column number(s) in covariates that should be used to explain each mediator listed in cm[[1]] and by that order. the list o group(s) o mediators whose joint mediation eect is o interests. joint[[1]] list the levels o mediators in each group and by the order o the list. Note that i any mediator in the group is o level 2, the level o the group should be 2. org.data i is TRUE, irst organize the data set and do transormations using the unction "data.org". In such case, need to speciy the transormation unction arguments. 01y, 10y, 02ky, 20ky, 01km1, 01km2, 10km the transormation unctions as describe in the unction "data.org". Need these arguments only when org.data=t. The multilevel mediation is based on the ollowing linear multilevel additive models: K ij = u 0j(X.j,.j, Z.j )+β10t 10 (X ij X.j )+ β20kt 20k ( ijk.jk )+β30t (Zij Z.j )+rij, where u 0j(X.j,.j, Z.j ) = c 00 + β 01T 01 (X.j ) + k=1 K β02kt 02k (.jk ) + β03t Z.j + r0j. k=1

12 12 mlma Value For k = 1,..., K, I or some k, k is level 2 variable,.jk = u 0jk(X.j ) + β 10kT 10k (X ij X.j ) + r ijk, u 0jk(X.j ) = c 00k + β01k T 1 01k (X.j ) + r0jk..jk = c 00k + β01k T 2 01k (X.j ) + r0jk. Note that in the models, ( ) = ( 1 ( ), 2 ( ),, l ( )) T is a set o l transormation unctions on, with the corresponding linear coeicients vector β = (β 1, β 2,, β l ) T. and l are known or model itting. l may be dierent with o dierent sub- and super-scripts. A "mlma" mode list will be returned with the ollowing items: de1 de2 ie1 ie12 ie2 1 m1 m2 ie1_list ie2_list level 1 direct eect rom predictor. level 2 direct eect rom predictor. level 1 indirect eect rom level 1 mediator. level 2 indirect eect rom level 1 mediator. level 2 indirect eect rom level 2 mediator. the overall multilevel model. a list, where the irst item identiies the level 1 mediators, and in that order, the ollowing items give the prediction unctions o the mediators. a list, where the irst item identiies the level 2 mediators, and in that order, the ollowing items give the prediction unctions o the mediators. a list, where the irst item identiies the level 1 mediators, and in that order, the ollowing items give the column(s) o the indirect eects o the mediator in ie1. a list, where the irst item identiies the level 2 mediators, and in that order, the ollowing items give the column(s) o the indirect eects o the mediator in ie2. iej2_list a list, where the irst item identiies the level 2 joint mediators, and in that order, the ollowing items give the column(s) o the indirect eects o the mediator in cbind(ie12,ie2). ie12_1,ie12_2, ie1_1, ie1_2, ie2_1, ie2_2 the irst and second part o the corresponding indirect eects. x x.j the vector o the predictive variable. the vector o the aggregated variable at the higher level by the order o unique(level[!is.na(level)]). data1 The results rom data.org. Author(s) Qingzhao u (qyu@lsuhsc.edu), Bin Li (bli@lsu.edu).

13 plot.mlma 13 Examples data(sim.111) data1<-data.org(x=sim.111$x, levelx=1, m=sim.111$m, l1=1:2, c1=3, c1r=1, 01y=c("x","log(x^2)"), 10y=c("x^2","sqrt(x+6)"), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 10km=list(2,"log(x+2)"), level=sim.111$level) temp<-mlma(y=sim.111$y, biny=false, data1=data1, x=sim.111$x, levelx=1, m=sim.111$m, l1=1:2,c1=3, c1r=1,level=sim.111$level) #can also do the above analysis using the ollowing code temp<-mlma(y=sim.111$y, biny=false, data1=data1, x=sim.111$x, levelx=1, m=sim.111$m, l1=1:2,c1=3, c1r=1,level=sim.111$level,org.data=true, 01y=c("x","log(x^2)"), 10y=c("x^2","sqrt(x+6)"), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 10km=list(2,"log(x+2)")) data(sim.211) data1<-data.org(x=sim.211$x, levelx=2, m=sim.211$m, l1=2,l2=1, c1=3, c1r=1, 01y=c("x","log(x^2)"), 02ky=list(1,c("x","x^2")), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 01km2=list(1,c("x^1.2","x^2.3")), level=sim.211$level) temp<-mlma(y=sim.211$y, biny=false, data1, x=sim.211$x, levelx=2, m=sim.211$m, l1=2, l2=1, c1=3, c1r=1,level=sim.211$level) plot.mlma Plot "mlma" Object Plot the overall mediation eect or decomposed indirect eect rom the selected mediator. Usage ## S3 method or class 'mlma' plot(x,..., var = NULL, cate = FALSE, w2 = rep(1, length(object$de2))) Arguments x an "mlma" object.... arguments to be passed to methods. var cate w2 the name o the mediator that is to be plotted. I var is NULL, plot the relative mediation eects o all mediators. TRUE when the mediator is a categorical variable. By deault is FALSE. the weight or observations at level 2, which should be the same order as unique(level[!is.na(level)]). The deault is rep(1,length(object$de2)).

14 14 plot.mlma.boot Details Plot the relative eects o direct eects and indirect eects o mediators at level 1 (i levelx=1) and level 2 respectively i var=null. Otherwise, plot the indirect eect o var, the estimated dierential eect o the predictor on var, and the predicted relationship between y and var at individual level and/or (aggregated) group level. Author(s) Qingzhao u (qyu@lsuhsc.edu), Bin Li (bli@lsu.edu). Examples data(sim.111) data1<-data.org(x=sim.111$x, levelx=1, m=sim.111$m, l1=1:2, c1=3, c1r=1, 01y=c("x","log(x^2)"), 10y=c("x^2","sqrt(x+6)"), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 10km=list(2,"log(x+2)"), level=sim.111$level) temp111<-mlma(y=sim.111$y, biny=false, data1=data1, x=sim.111$x, levelx=1, m=sim.111$m, l1=1:2,c1=3, c1r=1,level=sim.111$level) plot(temp111) plot(temp111,var="m.2") plot(temp111,var="m.3") plot(temp111,var="m.4", cate=true) data(sim.211) data1<-data.org(x=sim.211$x, levelx=2, m=sim.211$m, l1=2,l2=1, c1=3, c1r=1, 01y=c("x","log(x^2)"), 02ky=list(1,c("x","x^2")), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 01km2=list(1,c("x^1.2","x^2.3")), level=sim.211$level) temp211<-mlma(y=sim.211$y, biny=false, data1, x=sim.211$x, levelx=2, m=sim.211$m, l1=2, l2=1, c1=3, c1r=1,level=sim.211$level) plot(temp211) plot(temp211,var="m.1") plot(temp211,var="m.4", cate=true) plot(temp211,var="m.3") plot.mlma.boot Plot the "mlma.boot" Object Usage For the mediator identiied by var, the unction draws the level 1 and/or (aggregated) level 2 indirect eects versus the predictor and the conidence bands at alpha signiicance level. I var is NULL, draw the relative mediation eects with conidence intervals. ## S3 method or class 'mlma.boot' plot(x,..., var = NULL, alpha = 0.05, quant=false)

15 print.mlma 15 Arguments x an "mlma" object.... arguments to be passed to methods. var alpha quant Author(s) the name o the mediator that is to be plotted. the signiicance level at which to draw the conidence bands. i true, conidence interval is calculated using quantil when plot the relative eects. By deault, the CIs are calculated using normal approximation. This argument does nothing or the CIs calculated when var is not null. Qingzhao u (qyu@lsuhsc.edu), Bin Li (bli@lsu.edu). Examples #1-1-1 model data(sim.111) temp111<-boot.mlma(y=sim.111$y, biny=false, sim.111$x, levelx=1, m=sim.111$m, l1=1:2, c1=3,c1r=1, 01y=c("x","log(x^2)"), 10y=c("x^2","sqrt(x+6)"), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 10km=list(2,"log(x+2)"), level=sim.111$level, boot=2) plot(temp111) plot(temp111,var="m.2") plot(temp111,var="m.3") plot(temp111,var="m.4") #2-1-1 model data(sim.211) temp211<-boot.mlma(y=sim.211$y, biny=false, x=sim.211$x, levelx=2, m=sim.211$m, l1=2,l2=1, c1=3,c1r=1, 01y=c("x","log(x^2)"), 02ky=list(1,c("x","x^2")), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 01km2=list(1,c("x^1.2","x^2.3")), level=sim.211$level, boot=2) plot(temp211) plot(temp211,var="m.1") plot(temp211,var="m.4") plot(temp211,var="m.3") print.mlma Print "mlma" Object print the level 1 and level 2 mediation eecs rom the object.

16 16 sim.111 Usage ## S3 method or class 'mlma' print(x,..., w2 = rep(1, length(object$de2))) Arguments x an "mlma" object.... arguments to be passed to methods. w2 the weight or observations at level 2, which should be the same order as unique(level[!is.na(level)]). The deault is rep(1,length(object$de2)). Author(s) Qingzhao u (qyu@lsuhsc.edu), Bin Li (bli@lsu.edu). Examples data(sim.111) data1<-data.org(x=sim.111$x, levelx=1, m=sim.111$m, l1=1:2, c1=3, c1r=1, 01y=c("x","log(x^2)"), 10y=c("x^2","sqrt(x+6)"), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 10km=list(2,"log(x+2)"), level=sim.111$level) temp111<-mlma(y=sim.111$y, biny=false, data1=data1, x=sim.111$x, levelx=1, m=sim.111$m, l1=1:2,c1=3, c1r=1,level=sim.111$level) print(temp111) data(sim.211) data1<-data.org(x=sim.211$x, levelx=2, m=sim.211$m, l1=2,l2=1, c1=3, c1r=1, 01y=c("x","log(x^2)"), 02ky=list(1,c("x","x^2")), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 01km2=list(1,c("x^1.2","x^2.3")), level=sim.211$level) temp211<-mlma(y=sim.211$y, biny=false, data1, x=sim.211$x, levelx=2, m=sim.211$m, l1=2, l2=1, c1=3, c1r=1,level=sim.211$level) print(temp211) sim.111 Simulated Data set A simulated data set, where both predictor and outcome are level 1 variables. Usage data("sim.111")

17 sim Format The data set contains 10 groups, each group has 30 observations. The ormat is list, where there are our elements: x: the level 1 continuous predictor. y: the level 1 continuous outcome. m: the matrix o mediators, where there are three level 1 mediators, where m.2 and m.3 are continuous, and m.4 is categorical with 3 levels. level: the group level or each observation. Examples data(sim.111) sim.211 Simulated Data A simulated data set, where the predictor is a level 2 and the outcome is a level 1 variable. Usage data("sim.211") Format The data set contains 10 groups, each group has 30 observations. The ormat is list, where there are our elements: x: the level 1 continuous predictor. y: the level 1 continuous outcome. m: the matrix o mediators, where there are one level 2 mediator, m.1, and two level 1 mediators, m.3 and m.4. m.4 is categorical with 3 levels. level: the group level or each observation. Examples data(sim.211)

18 18 summary.mlma.boot summary.mlma Summary o "mlma" Object This unction provides ANOVA tests on the predictors and mediators in the ull model and on the predictors or models in explaining each mediators. Usage ## S3 method or class 'mlma' summary(object,...,type="iii") ## S3 method or class 'summary.mlma' print(x,...) Arguments object an "mlma" object. x a summary.mlma.boot object created initially call to summary.mlma.boot.... arguments to be passed to methods. type type o test, "II", "III", 2, or 3. Author(s) Qingzhao u (qyu@lsuhsc.edu), Bin Li (bli@lsu.edu). Examples data(sim.111) temp<-mlma(y=sim.111$y, biny=false, data1=data1, x=sim.111$x, levelx=1, m=sim.111$m, l1=1:2,c1=3, c1r=1,level=sim.111$level,org.data=true, 01y=c("x","log(x^2)"), 10y=c("x^2","sqrt(x+6)"), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 10km=list(2,"log(x+2)")) summary(temp) summary.mlma.boot Summary o "mlma.boot" Object This unction provide summary statistics or all mediation eects.

19 summary.mlma.boot 19 Usage ## S3 method or class 'mlma.boot' summary(object,..., alpha = 0.05,RE=FALSE) ## S3 method or class 'summary.mlma.boot' print(x,...) Arguments object x an "mlma" object. a summary.mlma.boot object created initially call to summary.mlma.boot.... arguments to be passed to methods. alpha RE Author(s) the signiicance level at which to draw the conidence bands. i true, print the relative eects, otherwise show the mediation eects. Qingzhao u (qyu@lsuhsc.edu), Bin Li (bli@lsu.edu). Examples #1-1-1 model data(sim.111) temp111<-boot.mlma(y=sim.111$y, biny=false, sim.111$x, levelx=1, m=sim.111$m, l1=1:2, c1=3,c1r=1, 01y=c("x","log(x^2)"), 10y=c("x^2","sqrt(x+6)"), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 10km=list(2,"log(x+2)"), level=sim.111$level, boot=2) summary(temp111) #2-1-1 model data(sim.211) temp211<-boot.mlma(y=sim.211$y, biny=false, x=sim.211$x, levelx=2, m=sim.211$m, l1=2,l2=1, c1=3,c1r=1, 01y=c("x","log(x^2)"), 02ky=list(1,c("x","x^2")), 20ky=list(2,c("x","x^3")), 01km1=list(2,"sqrt(x)+3"), 01km2=list(1,c("x^1.2","x^2.3")), level=sim.211$level, boot=2) summary(temp211)

20 Index Topic Data Transormation data.org, 6 Topic ultilevel ediation Analysis mlma, 10 Topic \textasciitildeinerences on LA boot.mlma, 3 Topic \textasciitildeultilevel ediation Analysis boot.mlma, 3 Topic \textasciitildekwd2 data.org, 6 Topic datasets sim.111, 16 sim.211, 17 Topic plot plot.mlma, 13 plot.mlma.boot, 14 Topic print print.mlma, 15 Topic summary statistics summary.mlma, 18 summary.mlma.boot, 18 summary.mlma.boot, 18 boot.mlma, 2, 3 data.org, 2, 6, 11 mlma, 2, 10 mlma-package, 2 plot.mlma, 13 plot.mlma.boot, 14 print.mlma, 15 print.summary.mlma (summary.mlma), 18 print.summary.mlma.boot (summary.mlma.boot), 18 sim.111, 16 sim.211, 17 summary.mlma, 18 20

Package mmabig. May 18, 2018

Package mmabig. May 18, 2018 Type Package Package mmabig May 18, 2018 Title Multiple Mediation Analysis for Big Data Sets Version 1.0-0 Date 2018-05-16 Author Qingzhao Yu and Bin Li Maintainer Qingzhao Yu Depends

More information

Package MultisiteMediation

Package MultisiteMediation Version 0.0.1 Date 2017-02-25 Package MultisiteMediation February 26, 2017 Title Causal Mediation Analysis in Multisite Trials Author Xu Qin, Guanglei Hong Maintainer Xu Qin Depends

More information

Package mma. March 8, 2018

Package mma. March 8, 2018 Type Package Title Multiple Mediation Analysis Version 6.1-0 Date 2018-03-08 Author Qingzhao Yu and Bin Li Maintainer Qingzhao Yu Package mma March 8, 2018 Depends R (>= 2.14.1), gbm,

More information

Package RTransferEntropy

Package RTransferEntropy Type Package Package RTransferEntropy March 12, 2019 Title Measuring Information Flow Between Time Series with Shannon and Renyi Transfer Entropy Version 0.2.8 Measuring information flow between time series

More information

Package effectfusion

Package effectfusion Package November 29, 2016 Title Bayesian Effect Fusion for Categorical Predictors Version 1.0 Date 2016-11-21 Author Daniela Pauger [aut, cre], Helga Wagner [aut], Gertraud Malsiner-Walli [aut] Maintainer

More information

Package HIMA. November 8, 2017

Package HIMA. November 8, 2017 Type Package Title High-Dimensional Mediation Analysis Version 1.0.5 Date 2017-11-05 Package HIMA November 8, 2017 Description Allows to estimate and test high-dimensional mediation effects based on sure

More information

Package clogitboost. R topics documented: December 21, 2015

Package clogitboost. R topics documented: December 21, 2015 Package December 21, 2015 Type Package Title Boosting Conditional Logit Model Version 1.1 Date 2015-12-09 Author Haolun Shi and Guosheng Yin Maintainer A set of functions to fit a boosting conditional

More information

Package gma. September 19, 2017

Package gma. September 19, 2017 Type Package Title Granger Mediation Analysis Version 1.0 Date 2018-08-23 Package gma September 19, 2017 Author Yi Zhao , Xi Luo Maintainer Yi Zhao

More information

Package gtheory. October 30, 2016

Package gtheory. October 30, 2016 Package gtheory October 30, 2016 Version 0.1.2 Date 2016-10-22 Title Apply Generalizability Theory with R Depends lme4 Estimates variance components, generalizability coefficients, universe scores, and

More information

Package weightquant. R topics documented: December 30, Type Package

Package weightquant. R topics documented: December 30, Type Package Type Package Package weightquant December 30, 2018 Title Weights for Incomplete Longitudinal Data and Quantile Regression Version 1.0 Date 2018-12-18 Author Viviane Philipps Maintainer Viviane Philipps

More information

Package IsingFit. September 7, 2016

Package IsingFit. September 7, 2016 Type Package Package IsingFit September 7, 2016 Title Fitting Ising Models Using the ELasso Method Version 0.3.1 Date 2016-9-6 Depends R (>= 3.0.0) Imports qgraph, Matrix, glmnet Suggests IsingSampler

More information

Package fwsim. October 5, 2018

Package fwsim. October 5, 2018 Version 0.3.4 Title Fisher-Wright Population Simulation Package fwsim October 5, 2018 Author Mikkel Meyer Andersen and Poul Svante Eriksen Maintainer Mikkel Meyer Andersen Description

More information

Package bmem. February 15, 2013

Package bmem. February 15, 2013 Package bmem February 15, 2013 Type Package Title Mediation analysis with missing data using bootstrap Version 1.3 Date 2011-01-04 Author Maintainer Zhiyong Zhang Depends R (>= 1.7),

More information

Package ltsbase. R topics documented: February 20, 2015

Package ltsbase. R topics documented: February 20, 2015 Package ltsbase February 20, 2015 Type Package Title Ridge and Liu Estimates based on LTS (Least Trimmed Squares) Method Version 1.0.1 Date 2013-08-02 Author Betul Kan Kilinc [aut, cre], Ozlem Alpu [aut,

More information

Package Grace. R topics documented: April 9, Type Package

Package Grace. R topics documented: April 9, Type Package Type Package Package Grace April 9, 2017 Title Graph-Constrained Estimation and Hypothesis Tests Version 0.5.3 Date 2017-4-8 Author Sen Zhao Maintainer Sen Zhao Description Use

More information

Package CovSel. September 25, 2013

Package CovSel. September 25, 2013 Type Package Title Model-Free Covariate Selection Version 1.0 Date 2013-06-24 Author Jenny Häggström, Emma Persson, Package CovSel September 25, 2013 Maintainer Jenny Häggström

More information

Package gwqs. R topics documented: May 7, Type Package. Title Generalized Weighted Quantile Sum Regression. Version 1.1.0

Package gwqs. R topics documented: May 7, Type Package. Title Generalized Weighted Quantile Sum Regression. Version 1.1.0 Package gwqs May 7, 2018 Type Package Title Generalized Weighted Quantile Sum Regression Version 1.1.0 Author Stefano Renzetti, Paul Curtin, Allan C Just, Ghalib Bello, Chris Gennings Maintainer Stefano

More information

Package rgabriel. February 20, 2015

Package rgabriel. February 20, 2015 Type Package Package rgabriel February 20, 2015 Title Gabriel Multiple Comparison Test and Plot the Confidence Interval on Barplot Version 0.7 Date 2013-12-28 Author Yihui XIE, Miao YU Maintainer Miao

More information

Package ShrinkCovMat

Package ShrinkCovMat Type Package Package ShrinkCovMat Title Shrinkage Covariance Matrix Estimators Version 1.2.0 Author July 11, 2017 Maintainer Provides nonparametric Steinian shrinkage estimators

More information

Package crossreg. February 19, 2015

Package crossreg. February 19, 2015 Package crossreg February 19, 2015 Type Package Title Confidence intervals for crossover points of two simple regression lines Version 1.0 Date 2014-07-08 Author Maintainer This package

More information

Package severity. February 20, 2015

Package severity. February 20, 2015 Type Package Title Mayo's Post-data Severity Evaluation Version 2.0 Date 2013-03-27 Author Nicole Mee-Hyaang Jinn Package severity February 20, 2015 Maintainer Nicole Mee-Hyaang Jinn

More information

Package idmtpreg. February 27, 2018

Package idmtpreg. February 27, 2018 Type Package Package idmtpreg February 27, 2018 Title Regression Model for Progressive Illness Death Data Version 1.1 Date 2018-02-23 Author Leyla Azarang and Manuel Oviedo de la Fuente Maintainer Leyla

More information

Package polypoly. R topics documented: May 27, 2017

Package polypoly. R topics documented: May 27, 2017 Package polypoly May 27, 2017 Title Helper Functions for Orthogonal Polynomials Version 0.0.2 Tools for reshaping, plotting, and manipulating matrices of orthogonal polynomials. Depends R (>= 3.3.3) License

More information

Package BayesNI. February 19, 2015

Package BayesNI. February 19, 2015 Package BayesNI February 19, 2015 Type Package Title BayesNI: Bayesian Testing Procedure for Noninferiority with Binary Endpoints Version 0.1 Date 2011-11-11 Author Sujit K Ghosh, Muhtarjan Osman Maintainer

More information

Package sbgcop. May 29, 2018

Package sbgcop. May 29, 2018 Package sbgcop May 29, 2018 Title Semiparametric Bayesian Gaussian Copula Estimation and Imputation Version 0.980 Date 2018-05-25 Author Maintainer Estimation and inference for parameters

More information

Chapter 6 Reliability-based design and code developments

Chapter 6 Reliability-based design and code developments Chapter 6 Reliability-based design and code developments 6. General Reliability technology has become a powerul tool or the design engineer and is widely employed in practice. Structural reliability analysis

More information

Package QuantifQuantile

Package QuantifQuantile Type Package Package QuantifQuantile August 13, 2015 Title Estimation of Conditional Quantiles using Optimal Quantization Version 2.2 Date 2015-08-13 Author Isabelle Charlier and Davy Paindaveine and Jerome

More information

Package lomb. February 20, 2015

Package lomb. February 20, 2015 Package lomb February 20, 2015 Type Package Title Lomb-Scargle Periodogram Version 1.0 Date 2013-10-16 Author Thomas Ruf, partially based on C original by Press et al. (Numerical Recipes) Maintainer Thomas

More information

Package SightabilityModel

Package SightabilityModel Type Package Title Wildlife Sightability Modeling Version 1.3 Date 2014-10-03 Author John Fieberg Package SightabilityModel Maintainer John Fieberg February 19, 2015 Uses logistic regression

More information

Package covtest. R topics documented:

Package covtest. R topics documented: Package covtest February 19, 2015 Title Computes covariance test for adaptive linear modelling Version 1.02 Depends lars,glmnet,glmpath (>= 0.97),MASS Author Richard Lockhart, Jon Taylor, Ryan Tibshirani,

More information

Package metafuse. October 17, 2016

Package metafuse. October 17, 2016 Package metafuse October 17, 2016 Type Package Title Fused Lasso Approach in Regression Coefficient Clustering Version 2.0-1 Date 2016-10-16 Author Lu Tang, Ling Zhou, Peter X.K. Song Maintainer Lu Tang

More information

Package mbvs. August 28, 2018

Package mbvs. August 28, 2018 Package mbvs August 28, 2018 Type Package Title Bayesian Variable Selection Methods for Multivariate Data Version 1.3 Date 2018-8-27 Author Kyu Ha Lee, Mahlet G. Tadesse, Brent A. Coull, Jacqueline R.

More information

Package sklarsomega. May 24, 2018

Package sklarsomega. May 24, 2018 Type Package Package sklarsomega May 24, 2018 Title Measuring Agreement Using Sklar's Omega Coefficient Version 1.0 Date 2018-05-22 Author John Hughes Maintainer John Hughes

More information

Package ChIPtest. July 20, 2016

Package ChIPtest. July 20, 2016 Type Package Package ChIPtest July 20, 2016 Title Nonparametric Methods for Identifying Differential Enrichment Regions with ChIP-Seq Data Version 1.0 Date 2017-07-07 Author Vicky Qian Wu ; Kyoung-Jae

More information

Package jmcm. November 25, 2017

Package jmcm. November 25, 2017 Type Package Package jmcm November 25, 2017 Title Joint Mean-Covariance Models using 'Armadillo' and S4 Version 0.1.8.0 Maintainer Jianxin Pan Fit joint mean-covariance models

More information

Package leiv. R topics documented: February 20, Version Type Package

Package leiv. R topics documented: February 20, Version Type Package Version 2.0-7 Type Package Package leiv February 20, 2015 Title Bivariate Linear Errors-In-Variables Estimation Date 2015-01-11 Maintainer David Leonard Depends R (>= 2.9.0)

More information

Package MicroMacroMultilevel

Package MicroMacroMultilevel Type Package Package MicroMacroMultilevel July 1, 2017 Description Most multilevel methodologies can only model macro-micro multilevel situations in an unbiased way, wherein group-level predictors (e.g.,

More information

Package covsep. May 6, 2018

Package covsep. May 6, 2018 Package covsep May 6, 2018 Title Tests for Determining if the Covariance Structure of 2-Dimensional Data is Separable Version 1.1.0 Author Shahin Tavakoli [aut, cre], Davide Pigoli [ctb], John Aston [ctb]

More information

Package SK. May 16, 2018

Package SK. May 16, 2018 Type Package Package SK May 16, 2018 Title Segment-Based Ordinary Kriging and Segment-Based Regression Kriging for Spatial Prediction Date 2018-05-10 Version 1.1 Maintainer Yongze Song

More information

Package darts. February 19, 2015

Package darts. February 19, 2015 Type Package Package darts February 19, 2015 Title Statistical Tools to Analyze Your Darts Game Version 1.0 Date 2011-01-17 Author Maintainer Are you aiming at the right spot in darts?

More information

Package noncompliance

Package noncompliance Type Package Package noncompliance February 15, 2016 Title Causal Inference in the Presence of Treatment Noncompliance Under the Binary Instrumental Variable Model Version 0.2.2 Date 2016-02-11 A finite-population

More information

Physics 5153 Classical Mechanics. Solution by Quadrature-1

Physics 5153 Classical Mechanics. Solution by Quadrature-1 October 14, 003 11:47:49 1 Introduction Physics 5153 Classical Mechanics Solution by Quadrature In the previous lectures, we have reduced the number o eective degrees o reedom that are needed to solve

More information

Package SEMModComp. R topics documented: February 19, Type Package Title Model Comparisons for SEM Version 1.0 Date Author Roy Levy

Package SEMModComp. R topics documented: February 19, Type Package Title Model Comparisons for SEM Version 1.0 Date Author Roy Levy Type Package Title Model Comparisons for SEM Version 1.0 Date 2009-02-23 Author Roy Levy Package SEMModComp Maintainer Roy Levy February 19, 2015 Conduct tests of difference in fit for

More information

Package EnergyOnlineCPM

Package EnergyOnlineCPM Type Package Package EnergyOnlineCPM October 2, 2017 Title Distribution Free Multivariate Control Chart Based on Energy Test Version 1.0 Date 2017-09-30 Author Yafei Xu Maintainer Yafei Xu

More information

Regression in R. Seth Margolis GradQuant May 31,

Regression in R. Seth Margolis GradQuant May 31, Regression in R Seth Margolis GradQuant May 31, 2018 1 GPA What is Regression Good For? Assessing relationships between variables This probably covers most of what you do 4 3.8 3.6 3.4 Person Intelligence

More information

Package FDRreg. August 29, 2016

Package FDRreg. August 29, 2016 Package FDRreg August 29, 2016 Type Package Title False discovery rate regression Version 0.1 Date 2014-02-24 Author James G. Scott, with contributions from Rob Kass and Jesse Windle Maintainer James G.

More information

Package JointModel. R topics documented: June 9, Title Semiparametric Joint Models for Longitudinal and Counting Processes Version 1.

Package JointModel. R topics documented: June 9, Title Semiparametric Joint Models for Longitudinal and Counting Processes Version 1. Package JointModel June 9, 2016 Title Semiparametric Joint Models for Longitudinal and Counting Processes Version 1.0 Date 2016-06-01 Author Sehee Kim Maintainer Sehee Kim

More information

Package anoint. July 19, 2015

Package anoint. July 19, 2015 Type Package Title Analysis of Interactions Version 1.4 Date 2015-07-10 Package anoint July 19, 2015 Author Ravi Varadhan and Stephanie Kovalchik Maintainer Stephanie Kovalchik

More information

Package NonpModelCheck

Package NonpModelCheck Type Package Package NonpModelCheck April 27, 2017 Title Model Checking and Variable Selection in Nonparametric Regression Version 3.0 Date 2017-04-27 Author Adriano Zanin Zambom Maintainer Adriano Zanin

More information

Package comparec. R topics documented: February 19, Type Package

Package comparec. R topics documented: February 19, Type Package Package comparec February 19, 2015 Type Package Title Compare Two Correlated C Indices with Right-censored Survival Outcome Version 1.3.1 Date 2014-12-18 Author Le Kang, Weijie Chen Maintainer Le Kang

More information

Package hierdiversity

Package hierdiversity Version 0.1 Date 2015-03-11 Package hierdiversity March 20, 2015 Title Hierarchical Multiplicative Partitioning of Complex Phenotypes Author Zachary Marion, James Fordyce, and Benjamin Fitzpatrick Maintainer

More information

Package rnmf. February 20, 2015

Package rnmf. February 20, 2015 Type Package Title Robust Nonnegative Matrix Factorization Package rnmf February 20, 2015 An implementation of robust nonnegative matrix factorization (rnmf). The rnmf algorithm decomposes a nonnegative

More information

Package GPfit. R topics documented: April 2, Title Gaussian Processes Modeling Version Date

Package GPfit. R topics documented: April 2, Title Gaussian Processes Modeling Version Date Title Gaussian Processes Modeling Version 1.0-0 Date 2015-04-01 Package GPfit April 2, 2015 Author Blake MacDoanld, Hugh Chipman, Pritam Ranjan Maintainer Hugh Chipman Description

More information

Package BootWPTOS. R topics documented: June 30, Type Package

Package BootWPTOS. R topics documented: June 30, Type Package Type Package Package BootWPTOS June 30, 2016 Title Test Stationarity using Bootstrap Wavelet Packet Tests Version 1.2 Date 2016-06-30 Depends R (>= 2.0), wavethresh, fractal Description Provides significance

More information

Package SimSCRPiecewise

Package SimSCRPiecewise Package SimSCRPiecewise July 27, 2016 Type Package Title 'Simulates Univariate and Semi-Competing Risks Data Given Covariates and Piecewise Exponential Baseline Hazards' Version 0.1.1 Author Andrew G Chapple

More information

Package mpmcorrelogram

Package mpmcorrelogram Type Package Package mpmcorrelogram Title Multivariate Partial Mantel Correlogram Version 0.1-4 Depends vegan Date 2017-11-17 Author Marcelino de la Cruz November 17, 2017 Maintainer Marcelino de la Cruz

More information

Package invgamma. May 7, 2017

Package invgamma. May 7, 2017 Package invgamma May 7, 2017 Type Package Title The Inverse Gamma Distribution Version 1.1 URL https://github.com/dkahle/invgamma BugReports https://github.com/dkahle/invgamma/issues Description Light

More information

Package CausalFX. May 20, 2015

Package CausalFX. May 20, 2015 Type Package Package CausalFX May 20, 2015 Title Methods for Estimating Causal Effects from Observational Data Version 1.0.1 Date 2015-05-20 Imports igraph, rcdd, rje Maintainer Ricardo Silva

More information

Asymptote. 2 Problems 2 Methods

Asymptote. 2 Problems 2 Methods Asymptote Problems Methods Problems Assume we have the ollowing transer unction which has a zero at =, a pole at = and a pole at =. We are going to look at two problems: problem is where >> and problem

More information

Package generalhoslem

Package generalhoslem Package generalhoslem December 2, 2017 Type Package Title Goodness of Fit Tests for Logistic Regression Models Version 1.3.2 Date 2017-12-02 Author Matthew Jay [aut, cre] Maintainer Matthew Jay

More information

Package survidinri. February 20, 2015

Package survidinri. February 20, 2015 Package survidinri February 20, 2015 Type Package Title IDI and NRI for comparing competing risk prediction models with censored survival data Version 1.1-1 Date 2013-4-8 Author Hajime Uno, Tianxi Cai

More information

Package blme. August 29, 2016

Package blme. August 29, 2016 Version 1.0-4 Date 2015-06-13 Title Bayesian Linear Mixed-Effects Models Author Vincent Dorie Maintainer Vincent Dorie Package blme August 29, 2016 Description Maximum a posteriori

More information

Package ebal. R topics documented: February 19, Type Package

Package ebal. R topics documented: February 19, Type Package Type Package Package ebal February 19, 2015 Title Entropy reweighting to create balanced samples Version 0.1-6 Date 2014-01-25 Author Maintainer Package implements entropy balancing,

More information

Package depth.plot. December 20, 2015

Package depth.plot. December 20, 2015 Package depth.plot December 20, 2015 Type Package Title Multivariate Analogy of Quantiles Version 0.1 Date 2015-12-19 Maintainer Could be used to obtain spatial depths, spatial ranks and outliers of multivariate

More information

Package CorrMixed. R topics documented: August 4, Type Package

Package CorrMixed. R topics documented: August 4, Type Package Type Package Package CorrMixed August 4, 2016 Title Estimate Correlations Between Repeatedly Measured Endpoints (E.g., Reliability) Based on Linear Mixed-Effects Models Version 0.1-13 Date 2015-03-08 Author

More information

Package flexcwm. R topics documented: July 2, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.1.

Package flexcwm. R topics documented: July 2, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.1. Package flexcwm July 2, 2014 Type Package Title Flexible Cluster-Weighted Modeling Version 1.1 Date 2013-11-03 Author Mazza A., Punzo A., Ingrassia S. Maintainer Angelo Mazza Description

More information

Package threeboost. February 20, 2015

Package threeboost. February 20, 2015 Type Package Package threeboost February 20, 2015 Title Thresholded variable selection and prediction based on estimating equations Version 1.1 Date 2014-08-09 Author Julian Wolfson and Christopher Miller

More information

Package factorqr. R topics documented: February 19, 2015

Package factorqr. R topics documented: February 19, 2015 Package factorqr February 19, 2015 Version 0.1-4 Date 2010-09-28 Title Bayesian quantile regression factor models Author Lane Burgette , Maintainer Lane Burgette

More information

Package RI2by2. October 21, 2016

Package RI2by2. October 21, 2016 Package RI2by2 October 21, 2016 Type Package Title Randomization Inference for Treatment Effects on a Binary Outcome Version 1.3 Author Joseph Rigdon, Wen Wei Loh, Michael G. Hudgens Maintainer Wen Wei

More information

AH 2700A. Attenuator Pair Ratio for C vs Frequency. Option-E 50 Hz-20 khz Ultra-precision Capacitance/Loss Bridge

AH 2700A. Attenuator Pair Ratio for C vs Frequency. Option-E 50 Hz-20 khz Ultra-precision Capacitance/Loss Bridge 0 E ttenuator Pair Ratio or vs requency NEEN-ERLN 700 Option-E 0-0 k Ultra-precision apacitance/loss ridge ttenuator Ratio Pair Uncertainty o in ppm or ll Usable Pairs o Taps 0 0 0. 0. 0. 07/08/0 E E E

More information

Package My.stepwise. June 29, 2017

Package My.stepwise. June 29, 2017 Type Package Package My.stepwise June 29, 2017 Title Stepwise Variable Selection Procedures for Regression Analysis Version 0.1.0 Author International-Harvard Statistical Consulting Company

More information

Package GORCure. January 13, 2017

Package GORCure. January 13, 2017 Package GORCure January 13, 2017 Type Package Title Fit Generalized Odds Rate Mixture Cure Model with Interval Censored Data Version 2.0 Date 2017-01-12 Author Jie Zhou, Jiajia Zhang, Wenbin Lu Maintainer

More information

Package jaccard. R topics documented: June 14, Type Package

Package jaccard. R topics documented: June 14, Type Package Tpe Package Package jaccard June 14, 2018 Title Test Similarit Between Binar Data using Jaccard/Tanimoto Coefficients Version 0.1.0 Date 2018-06-06 Author Neo Christopher Chung , Błażej

More information

Package msir. R topics documented: April 7, Type Package Version Date Title Model-Based Sliced Inverse Regression

Package msir. R topics documented: April 7, Type Package Version Date Title Model-Based Sliced Inverse Regression Type Package Version 1.3.1 Date 2016-04-07 Title Model-Based Sliced Inverse Regression Package April 7, 2016 An R package for dimension reduction based on finite Gaussian mixture modeling of inverse regression.

More information

Package causalweight

Package causalweight Type Package Package causalweight August 1, 2018 Title Estimation Methods for Causal Inference Based on Inverse Probability Weighting Version 0.1.1 Author Hugo Bodory and Martin Huber Maintainer Hugo Bodory

More information

Package bigtime. November 9, 2017

Package bigtime. November 9, 2017 Package bigtime November 9, 2017 Type Package Title Sparse Estimation of Large Time Series Models Version 0.1.0 Author Ines Wilms [cre, aut], David S. Matteson [aut], Jacob Bien [aut], Sumanta Basu [aut]

More information

Package milineage. October 20, 2017

Package milineage. October 20, 2017 Type Package Package milineage October 20, 2017 Title Association Tests for Microbial Lineages on a Taxonomic Tree Version 2.0 Date 2017-10-18 Author Zheng-Zheng Tang Maintainer Zheng-Zheng Tang

More information

Package bhrcr. November 12, 2018

Package bhrcr. November 12, 2018 Type Package Package bhrcr November 12, 2018 Title Bayesian Hierarchical Regression on Clearance Rates in the Presence of Lag and Tail Phases Version 1.0.2 Date 2018-11-12 Author Colin B. Fogarty [cre]

More information

Objectives. By the time the student is finished with this section of the workbook, he/she should be able

Objectives. By the time the student is finished with this section of the workbook, he/she should be able FUNCTIONS Quadratic Functions......8 Absolute Value Functions.....48 Translations o Functions..57 Radical Functions...61 Eponential Functions...7 Logarithmic Functions......8 Cubic Functions......91 Piece-Wise

More information

Package plspolychaos

Package plspolychaos Version 1.1-1 Date 2017-03-01 Package plspolychaos June 9, 2018 Title Sensitivity Indexes from Polynomial Chaos Expansions and PLS Author A. Bouvier [aut], J.-P. Gauchi [cre], A. Bensadoun [ctb] Maintainer

More information

Package locfdr. July 15, Index 5

Package locfdr. July 15, Index 5 Version 1.1-8 Title Computes Local False Discovery Rates Package locfdr July 15, 2015 Maintainer Balasubramanian Narasimhan License GPL-2 Imports stats, splines, graphics Computation

More information

Package cccrm. July 8, 2015

Package cccrm. July 8, 2015 Package cccrm July 8, 2015 Title Concordance Correlation Coefficient for Repeated (and Non-Repeated) Measures Version 1.2.1 Date 2015-07-03 Author Josep Lluis Carrasco , Josep Puig Martinez

More information

Package dhsic. R topics documented: July 27, 2017

Package dhsic. R topics documented: July 27, 2017 Package dhsic July 27, 2017 Type Package Title Independence Testing via Hilbert Schmidt Independence Criterion Version 2.0 Date 2017-07-24 Author Niklas Pfister and Jonas Peters Maintainer Niklas Pfister

More information

Package TwoStepCLogit

Package TwoStepCLogit Package TwoStepCLogit March 21, 2016 Type Package Title Conditional Logistic Regression: A Two-Step Estimation Method Version 1.2.5 Date 2016-03-19 Author Radu V. Craiu, Thierry Duchesne, Daniel Fortin

More information

Package IUPS. February 19, 2015

Package IUPS. February 19, 2015 Package IUPS February 19, 2015 Type Package Title Incorporating Uncertainties in Propensity Scores Version 1.0 Date 2013-6-5 Author Weihua An, Huizi Xu, and Zhida Zheng, Indiana University Bloomington

More information

Package pearson7. June 22, 2016

Package pearson7. June 22, 2016 Version 1.0-2 Date 2016-06-21 Package pearson7 June 22, 2016 Title Maximum Likelihood Inference for the Pearson VII Distribution with Shape Parameter 3/2 Author John Hughes Maintainer John Hughes

More information

Package CPE. R topics documented: February 19, 2015

Package CPE. R topics documented: February 19, 2015 Package CPE February 19, 2015 Title Concordance Probability Estimates in Survival Analysis Version 1.4.4 Depends R (>= 2.10.0),survival,rms Author Qianxing Mo, Mithat Gonen and Glenn Heller Maintainer

More information

Package supernova. February 23, 2018

Package supernova. February 23, 2018 Type Package Package supernova February 23, 2018 Title Judd & McClelland Formatting for ANOVA Output Version 1.0 Date 2018-02-09 LazyData yes Produces ANOVA tables in the format used by Judd, McClelland,

More information

Package IndepTest. August 23, 2018

Package IndepTest. August 23, 2018 Type Package Package IndepTest August 23, 2018 Title Nonparametric Independence Tests Based on Entropy Estimation Version 0.2.0 Date 2018-08-23 Author Thomas B. Berrett [aut],

More information

Package basad. November 20, 2017

Package basad. November 20, 2017 Package basad November 20, 2017 Type Package Title Bayesian Variable Selection with Shrinking and Diffusing Priors Version 0.2.0 Date 2017-11-15 Author Qingyan Xiang , Naveen Narisetty

More information

Package RootsExtremaInflections

Package RootsExtremaInflections Type Package Package RootsExtremaInflections May 10, 2017 Title Finds Roots, Extrema and Inflection Points of a Curve Version 1.1 Date 2017-05-10 Author Demetris T. Christopoulos Maintainer Demetris T.

More information

Package r2glmm. August 5, 2017

Package r2glmm. August 5, 2017 Type Package Package r2glmm August 5, 2017 Title Computes R Squared for Mixed (Multilevel) Models Date 2017-08-04 Version 0.1.2 The model R squared and semi-partial R squared for the linear and generalized

More information

Package separationplot

Package separationplot Package separationplot March 15, 2015 Type Package Title Separation Plots Version 1.1 Date 2015-03-15 Author Brian D. Greenhill, Michael D. Ward and Audrey Sacks Maintainer ORPHANED Suggests MASS, Hmisc,

More information

Package flexcwm. R topics documented: July 11, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.0.

Package flexcwm. R topics documented: July 11, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.0. Package flexcwm July 11, 2013 Type Package Title Flexible Cluster-Weighted Modeling Version 1.0 Date 2013-02-17 Author Incarbone G., Mazza A., Punzo A., Ingrassia S. Maintainer Angelo Mazza

More information

Package ICGOR. January 13, 2017

Package ICGOR. January 13, 2017 Package ICGOR January 13, 2017 Type Package Title Fit Generalized Odds Rate Hazards Model with Interval Censored Data Version 2.0 Date 2017-01-12 Author Jie Zhou, Jiajia Zhang, Wenbin Lu Maintainer Jie

More information

Least-Squares Spectral Analysis Theory Summary

Least-Squares Spectral Analysis Theory Summary Least-Squares Spectral Analysis Theory Summary Reerence: Mtamakaya, J. D. (2012). Assessment o Atmospheric Pressure Loading on the International GNSS REPRO1 Solutions Periodic Signatures. Ph.D. dissertation,

More information

Package bivariate. December 10, 2018

Package bivariate. December 10, 2018 Title Bivariate Probability Distributions Version 0.3.0 Date 2018-12-10 License GPL (>= 2) Package bivariate December 10, 2018 Maintainer Abby Spurdle Author Abby Spurdle URL https://sites.google.com/site/asrpws

More information

Package EMVS. April 24, 2018

Package EMVS. April 24, 2018 Type Package Package EMVS April 24, 2018 Title The Expectation-Maximization Approach to Bayesian Variable Selection Version 1.0 Date 2018-04-23 Author Veronika Rockova [aut,cre], Gemma Moran [aut] Maintainer

More information

Package SimCorMultRes

Package SimCorMultRes Type Package Package SimCorMultRes Title Simulates Correlated Multinomial Responses July 10, 2018 Description Simulates correlated multinomial responses conditional on a marginal model specification. Version

More information

Package rkt. March 7, 2017

Package rkt. March 7, 2017 Type Package Package rkt March 7, 2017 Title Mann-Kendall Test, Seasonal and Regional Kendall Tests Version 1.5 Date 2017-03-07 Author Aldo Marchetto Maintainer Aldo Marchetto

More information