delfplot {bate} R Documentation

## Plot graph of function delta=f(Rmax)

### Description

Plot graph of function delta=f(Rmax)

### Usage

delfplot(parameters)


### Arguments

 parameters A vector of parameters that is generated after estimating the short, intermediate and auxiliary regressions.

### Value

A plot object created with ggplot

### Examples

## Load data set
data("NLSY_IQ")

## Set age and race as factor variables
NLSY_IQ$age <- factor(NLSY_IQ$age)
NLSY_IQ$race <- factor(NLSY_IQ$race)

## Collect parameters from the short, intermediate and auxiliary regressions
parameters <- collect_par(
data = NLSY_IQ, outcome = "iq_std",
treatment = "BF_months",
control = c("age","sex","income","motherAge","motherEDU","mom_married","race"),
other_regressors = c("sex","age"))

## Set limits for the bounded box
Rlow <- parameters\$Rtilde
Rhigh <- 0.61
deltalow <- 0.01
deltahigh <- 0.99
e <- 0.01

## Oster's method: Plot of delta = f(Rmax)
p4 <- delfplot(parameters = parameters)
print(p4)



[Package bate version 0.1.0 Index]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6005513,"math_prob":0.98097587,"size":886,"snap":"2022-27-2022-33","text_gpt3_token_len":263,"char_repetition_ratio":0.13605443,"word_repetition_ratio":0.017699115,"special_character_ratio":0.2866817,"punctuation_ratio":0.13571429,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99336386,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-03T12:36:01Z\",\"WARC-Record-ID\":\"<urn:uuid:f7f966e6-af7a-4c5f-b8f0-eb80af169f8e>\",\"Content-Length\":\"2703\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8aa19a53-a777-49f6-abea-999c5c053544>\",\"WARC-Concurrent-To\":\"<urn:uuid:ac109707-f78b-41d8-b337-def62c8799e6>\",\"WARC-IP-Address\":\"137.208.57.46\",\"WARC-Target-URI\":\"https://search.r-project.org/CRAN/refmans/bate/html/delfplot.html\",\"WARC-Payload-Digest\":\"sha1:ZPH3QI4TZQ475HGBUVZXCFLFISUCSJTK\",\"WARC-Block-Digest\":\"sha1:XMSCCI7COZYKDJWIALIOSLQWL5T5XJEK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104240553.67_warc_CC-MAIN-20220703104037-20220703134037-00627.warc.gz\"}"}