Skip to content

[BUG] y_hat_test specification under adaptive coding #231

@MaggieWang0614

Description

@MaggieWang0614

Description

Language: R
Model: BCF
Question: Is the y_hat_test correctly specified under adaptive coding?

Bug

stochtree/R/bcf.R

Line 2534 in 4f1c3e8

y_hat_test <- mu_hat_test + treatment_term_test

Based on this line, we would get
y(1) = mu(x) + tau_raw(x) * (b1 - b0)
y(0) = mu(x)

Expected behavior

With adaptive coding, we should expect
y(1) = mu(x) + tau_raw(x) * b1
y(0) = mu(x) + tau_raw(x) * b0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions