condprob: Function condprob

Description Usage Arguments Examples

Description

This function calculates a conditional probability analysis

Usage

1
2
3
condprob(xX, xY, xImpair, ProbComp = c("gt", "lt"), Exceed = c("gte",
  "lte"), ci = FALSE, alpha = 0.05, R = 100, xW = rep(1,
  length(xX)))

Arguments

xX

numeric vector for conditional (independent) variable

xY

numeric vector for dependent variable, conditional on xX

xImpair

numeric threshold for impairment of xY

ProbComp

chr string

Exceed

chr string

ci

logical to return confidence interval for estimated likelihood of impairment

alpha

numeric for alpha level defining confidence

R

numeric for number of bootstrap iterations to estimate confidence

xW

numeric vector with length equal to xX

Examples

1
2
3
4
data(jeqdata_wq)
ept<-jeqdata_wq$EPT.RICH
pct_fn<-jeqdata_wq$PCT.FN
cpa1<-condprob(pct_fn,ept,9,'lt','gte',T,R=1000)

jhollist/condprob2 documentation built on May 19, 2019, 9:27 a.m.