Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR for #70: exclude endpoints if trend #80

Merged
merged 1 commit into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xtevent/_eventols.ado
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ program define _eventols, rclass
return matrix Vdeltaov = `Vdeltaov'
return matrix mattrendy = `mattrendy'
return matrix mattrendx = `mattrendx'
return local trend = "trend"
}
if "`trend'"!="" return local trend = "trend"
return local method = "ols"
end

Expand Down
5 changes: 3 additions & 2 deletions xtevent/xtevent.ado
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ program define xtevent, eclass
loc saveov = r(saveov)
if "`saveov'"=="." loc saveov ""
if "`saveov'"!="" {

mat mattrendy = r(mattrendy)
mat mattrendx = r(mattrendx)
mat deltaov = r(deltaov)
Expand All @@ -266,8 +266,9 @@ program define xtevent, eclass
ereturn matrix mattrendx = mattrendx
ereturn matrix deltaov = deltaov
ereturn matrix Vdeltaov = Vdeltaov
ereturn local trend = r(trend)
}
if "`trend'"!="" ereturn local trend = r(trend)

ereturn scalar lwindow= `lwindow'
ereturn scalar rwindow=`rwindow'
if "`pre'"!="" {
Expand Down