f_beta0: Determining the Intercept

View source: R/f_beta0.R

f_beta0R Documentation

Determining the Intercept

Description

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

Usage

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 Feb. 15, 2025, 2:35 p.m.