Hi,
I have successfully used rlassologit to obtain a parsimonious set of predictors in a logistic regression.
rlassologit is a function from the LASSOPACK user written Stata package.
https://statalasso.github.io/docs/la...log-1-citation
I am attempting to use the LASSOPACK cross validation function for the same model but obtain the following error message
type mismatch: exp.exp: transmorphic found where struct expected
r(3000);
The code I am using is as follows -
cvlassologit dep_var indep_var1 - indep_var30, long postresults nfolds(3) seed(42) tabfold stratified
I have chosen nfolds(3) as it is a small data set, n = 122 with a high proportion of cases (low proportion of controls).
Before the error message appears I obtain the following output which verifies the folds.
dep_var | Fold
| 1 2 3 | Total
-----------+---------------------------------+----------
0 | 5 6 6 | 17
1 | 35 35 35 | 105
-----------+---------------------------------+----------
Total | 40 41 41 | 122
I am using Stata 13.
Can anyone tell me what I need to do to run cvlassologit or is the problem to do with the low number of controls in each fold?
Thanks in advance,
Don
I have successfully used rlassologit to obtain a parsimonious set of predictors in a logistic regression.
rlassologit is a function from the LASSOPACK user written Stata package.
https://statalasso.github.io/docs/la...log-1-citation
I am attempting to use the LASSOPACK cross validation function for the same model but obtain the following error message
type mismatch: exp.exp: transmorphic found where struct expected
r(3000);
The code I am using is as follows -
cvlassologit dep_var indep_var1 - indep_var30, long postresults nfolds(3) seed(42) tabfold stratified
I have chosen nfolds(3) as it is a small data set, n = 122 with a high proportion of cases (low proportion of controls).
Before the error message appears I obtain the following output which verifies the folds.
dep_var | Fold
| 1 2 3 | Total
-----------+---------------------------------+----------
0 | 5 6 6 | 17
1 | 35 35 35 | 105
-----------+---------------------------------+----------
Total | 40 41 41 | 122
I am using Stata 13.
Can anyone tell me what I need to do to run cvlassologit or is the problem to do with the low number of controls in each fold?
Thanks in advance,
Don
Comment