bounds_ls: Bounds

Description Usage Arguments Details Value Examples

View source: R/ls_functions.R

Description

Computes parameter bounds to be used in L-BFGS-B mle optimization.

Usage

1

Arguments

data

data frame containing cols y (positive outcome with zeros) and z (treatment).

Details

For the input data frame, column z is the dummy variable for treatment. If z = 1, then the observation has received treatment. If z = 0, then the observation has not received treatment.
Each strata must have at least three observations.
According to RDocumentation, the L-BFGS-B method for optimization is taken from Byrd et. al. (1995), allowing box constraints with upper and lower bound.

Value

The maximum and lowest possible values for segment proportions, mean, and variance.

Examples

1
2
sim = sim_latent_strat(n=10000, piA=0.2, piB=0.1, muA1=5, muA0=4.5, muB1=3, sigma=0.3)
bounds_ls(sim$data)

zthuang0422/PURM-2021-Latent-Stratification documentation built on Dec. 23, 2021, 10:12 p.m.