checkRd: (-1) LZeroSpikeInference.Rd:20: Lost braces; missing escapes or markup?
    20 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |          ^
checkRd: (-1) LZeroSpikeInference.Rd:20: Lost braces; missing escapes or markup?
    20 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |                              ^
checkRd: (-1) LZeroSpikeInference.Rd:20: Lost braces; missing escapes or markup?
    20 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |                                                                   ^
checkRd: (-1) LZeroSpikeInference.Rd:20: Lost braces
    20 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |                                                                             ^
checkRd: (-1) LZeroSpikeInference.Rd:20: Lost braces; missing escapes or markup?
    20 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |                                                                                              ^
checkRd: (-1) LZeroSpikeInference.Rd:28: Lost braces; missing escapes or markup?
    28 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |          ^
checkRd: (-1) LZeroSpikeInference.Rd:28: Lost braces; missing escapes or markup?
    28 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                        ^
checkRd: (-1) LZeroSpikeInference.Rd:28: Lost braces; missing escapes or markup?
    28 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                                                                 ^
checkRd: (-1) LZeroSpikeInference.Rd:28: Lost braces
    28 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                                                                           ^
checkRd: (-1) LZeroSpikeInference.Rd:28: Lost braces; missing escapes or markup?
    28 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                                                                                            ^
checkRd: (-1) LZeroSpikeInference.Rd:28: Lost braces; missing escapes or markup?
    28 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                                                                                                             ^
checkRd: (-1) LZeroSpikeInference.Rd:29: Lost braces; missing escapes or markup?
    29 | where the indicator variable 1_{(A,B)} equals 1 if the event A cup B holds, and equals zero otherwise.
       |                                ^
checkRd: (-1) cv.estimateSpikes.Rd:50: Lost braces; missing escapes or markup?
    50 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |          ^
checkRd: (-1) cv.estimateSpikes.Rd:50: Lost braces; missing escapes or markup?
    50 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |                              ^
checkRd: (-1) cv.estimateSpikes.Rd:50: Lost braces; missing escapes or markup?
    50 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |                                                                   ^
checkRd: (-1) cv.estimateSpikes.Rd:50: Lost braces
    50 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |                                                                             ^
checkRd: (-1) cv.estimateSpikes.Rd:50: Lost braces; missing escapes or markup?
    50 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |                                                                                              ^
checkRd: (-1) cv.estimateSpikes.Rd:59: Lost braces; missing escapes or markup?
    59 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |          ^
checkRd: (-1) cv.estimateSpikes.Rd:59: Lost braces; missing escapes or markup?
    59 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                        ^
checkRd: (-1) cv.estimateSpikes.Rd:59: Lost braces; missing escapes or markup?
    59 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                                                                 ^
checkRd: (-1) cv.estimateSpikes.Rd:59: Lost braces
    59 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                                                                           ^
checkRd: (-1) cv.estimateSpikes.Rd:59: Lost braces; missing escapes or markup?
    59 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                                                                                            ^
checkRd: (-1) cv.estimateSpikes.Rd:59: Lost braces; missing escapes or markup?
    59 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                                                                                                             ^
checkRd: (-1) cv.estimateSpikes.Rd:60: Lost braces; missing escapes or markup?
    60 | where the indicator variable 1_{(A,B)} equals 1 if the event A cup B holds, and equals zero otherwise.
       |                                ^
checkRd: (-1) estimateSpikes.Rd:41: Lost braces; missing escapes or markup?
    41 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |          ^
checkRd: (-1) estimateSpikes.Rd:41: Lost braces; missing escapes or markup?
    41 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |                              ^
checkRd: (-1) estimateSpikes.Rd:41: Lost braces; missing escapes or markup?
    41 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |                                                                   ^
checkRd: (-1) estimateSpikes.Rd:41: Lost braces
    41 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |                                                                             ^
checkRd: (-1) estimateSpikes.Rd:41: Lost braces; missing escapes or markup?
    41 | minimize_{c1,...,cT} 0.5 sum_{t=1}^T ( y_t - c_t )^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1} }
       |                                                                                              ^
checkRd: (-1) estimateSpikes.Rd:49: Lost braces; missing escapes or markup?
    49 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |          ^
checkRd: (-1) estimateSpikes.Rd:49: Lost braces; missing escapes or markup?
    49 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                        ^
checkRd: (-1) estimateSpikes.Rd:49: Lost braces; missing escapes or markup?
    49 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                                                                 ^
checkRd: (-1) estimateSpikes.Rd:49: Lost braces
    49 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                                                                           ^
checkRd: (-1) estimateSpikes.Rd:49: Lost braces; missing escapes or markup?
    49 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                                                                                            ^
checkRd: (-1) estimateSpikes.Rd:49: Lost braces; missing escapes or markup?
    49 | minimize_{c1,...,cT,b1,...,bT} 0.5 sum_{t=1}^T (y_t - c_t - b_t)^2 + lambda sum_{t=2}^T 1_{c_t neq gamma c_{t-1}, b_t neq b_{t-1} }
       |                                                                                                                             ^
checkRd: (-1) estimateSpikes.Rd:50: Lost braces; missing escapes or markup?
    50 | where the indicator variable 1_{(A,B)} equals 1 if the event A cup B holds, and equals zero otherwise.
       |                                ^
checkRd: (-1) simulateAR1.Rd:31: Lost braces; missing escapes or markup?
    31 | c_t = gam * c_{t-1} + s_t
       |               ^