f_beta0: Determining the Intercept

Description Usage Arguments Value

View source: R/f_beta0.R

Description

f_beta0 is used by simulateSRS to find the appropriate intercept for a logistic regression model.

Usage

1
f_beta0(beta0, margprob, beta1, margprob_parent)

Arguments

beta0

The intercept

margprob

The marginal probability

beta1

The regression coefficient of the parent variable

margprob_parent

The marginal probability of the parent

Value

The absolute difference between the desired marginal probability and the current marginal probability


bips-hb/srsim documentation built on Dec. 10, 2020, 3:16 p.m.