Skip to content

Commit

Permalink
fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AldoCorbelliniUNIPR committed May 5, 2024
1 parent 5bef1e4 commit bba90e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toolbox/regression/regressCens.m
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
%% Example of right censoring.
% When left=-Inf and right=0 indicates that there is no left-censoring but
% there is a right censoring at 0. The same model as above but with the
% negative number of affairs as teh dependent variable can be estimated by
% negative number of affairs as the dependent variable can be estimated by
load affairs.mat
X=affairs(:,["age" "yearsmarried" "religiousness" "occupation" "rating"]);
y=affairs(:,"affairs").*(-1);
Expand All @@ -228,7 +228,7 @@
%% Example of right censoring with X a table with categorical variables.
% When left=-Inf and right=0 indicates that there is no left-censoring but
% there is a right censoring at 0. The same model as above but with the
% negative number of affairs as teh dependent variable can be estimated by
% negative number of affairs as the dependent variable can be estimated by
load affairs.mat
X=affairs(:,["age" "yearsmarried" "religiousness" "occupation" "rating"]);
y=affairs(:,"affairs").*(-1);
Expand Down

0 comments on commit bba90e8

Please sign in to comment.