Good morning everyone
I'm trying to run a logistic regression. My sample is unbalanced (80-20), for that reason a used bootstrapping command with my dependend variable as strata
bootstrap , reps(3000) strata (aentrada3) seed(859): logistic aentrada3 i.asexo1 aedad1 aanalfabeta asinactiv azona1 aaƱo acoca.
then I tried to check the model with ROC curve and classification table using estat classification command.
Now, I have four specific questios:
1) how can I know the size of the sample taken in the bootstrap. It says that is _N by default, but if -N is my total sample, what are the sizes of the subsamples? (I have 200 (0) and 800 (1))
2) in the classification table, what stimator is taken to compare? the mean of the 3000 reps estimators?
3) in the classification table, with what sample compare the estimator? a mean of the 3000 samples?
4) given the unbalanced sample, is a good threshold the 0.5 by default for the classification table? if not, how can I know the good one?
I really appreciate your kind collaboration, please.
I'm trying to run a logistic regression. My sample is unbalanced (80-20), for that reason a used bootstrapping command with my dependend variable as strata
bootstrap , reps(3000) strata (aentrada3) seed(859): logistic aentrada3 i.asexo1 aedad1 aanalfabeta asinactiv azona1 aaƱo acoca.
then I tried to check the model with ROC curve and classification table using estat classification command.
Now, I have four specific questios:
1) how can I know the size of the sample taken in the bootstrap. It says that is _N by default, but if -N is my total sample, what are the sizes of the subsamples? (I have 200 (0) and 800 (1))
2) in the classification table, what stimator is taken to compare? the mean of the 3000 reps estimators?
3) in the classification table, with what sample compare the estimator? a mean of the 3000 samples?
4) given the unbalanced sample, is a good threshold the 0.5 by default for the classification table? if not, how can I know the good one?
I really appreciate your kind collaboration, please.
Comment