Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
sethharju authored Sep 12, 2023
1 parent 8ec10d9 commit 9fa9dc7
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
for(i in 1:n.svb) {

# n.svb: the number of stratum-varying effects
# m.k: the index for the ith stratum-varying effect
# kappa has dims [n.svb, y.n.strata]

kappa[i, 1] <- Beta[m.k[i]] # the effect of Beta[m.k[i]] in the reference stratum
for (j in 2:y.n.strata) {
kappa[m.k[i]+j-1, j] <- Beta[m.k[i]] + Beta[m.k[i]+j-1] # assumes the entries in X are ordered
}
}

0 comments on commit 9fa9dc7

Please sign in to comment.