Learn R Programming

setweaver (version 1.0.0)

zprob: zprob

Description

Computes the z-score for testing whether the proportion (probability) of successes in `x` differs from zero.

Usage

zprob(x)

Value

A numeric value giving the z-score for the observed proportion.

Arguments

x

A numeric or logical vector representing binary outcomes (e.g., 0/1 or TRUE/FALSE), from which the proportion is calculated.

Examples

Run this code
zprob(misimdata$x1)

Run the code above in your browser using DataLab