Learn R Programming

pseval (version 1.3.1)

add_estimate: Estimate parameters

Description

Estimate parameters

Usage

add_estimate(psdesign, estimate)

Arguments

psdesign

A psdesign object, it must have risk model and integration model components

estimate

An estimate object created by ps_estimate

Examples

Run this code
# NOT RUN {
test <- psdesign(generate_example_data(n = 100), Z = Z, Y = Y.obs, S = S.obs, BIP = BIP)
test + integrate_parametric(S.1 ~ BIP) + risk_binary(D = 50) + ps_estimate(method = "BFGS")
# }

Run the code above in your browser using DataLab