<p>We simulate data for <spanclass="math inline">\(n\)</span> samples and <spanclass="math inline">\(p\)</span> features, in a high-dimensional settting (<spanclass="math inline">\(p \gg n\)</span>). The matrix <spanclass="math inline">\(\boldsymbol{X}\)</span> with <spanclass="math inline">\(n\)</span> rows and <spanclass="math inline">\(p\)</span> columns represents the features, and the vector <spanclass="math inline">\(\boldsymbol{y}\)</span> of length <spanclass="math inline">\(n\)</span> represents the continuous outcome.</p>
<p>We simulate data for <spanclass="math inline">\(n\)</span> samples and <spanclass="math inline">\(p\)</span> features, in a high-dimensional setting (<spanclass="math inline">\(p \gg n\)</span>). The matrix <spanclass="math inline">\(\boldsymbol{X}\)</span> with <spanclass="math inline">\(n\)</span> rows and <spanclass="math inline">\(p\)</span> columns represents the features, and the vector <spanclass="math inline">\(\boldsymbol{y}\)</span> of length <spanclass="math inline">\(n\)</span> represents the continuous outcome.</p>
<aclass="sourceLine"id="cb4-2"title="2">n <-<spanclass="st"></span><spanclass="dv">100</span>; p <-<spanclass="st"></span><spanclass="dv">500</span></a>
<aclass="sourceLine"id="cb4-2"title="2">n <-<spanclass="st"></span><spanclass="dv">100</span>; p <-<spanclass="st"></span><spanclass="dv">500</span></a>
<p>We use the function <code>cornet</code> for modelling the original continuous outcome and the artifial binary outcome. The argument <code>cutoff</code> splits the samples into two groups, those with an outcome less than or equal to the cutoff, and those with an outcome greater than the cutoff.</p>
<p>We use the function <code>cornet</code> for modelling the original continuous outcome and the artificial binary outcome. The argument <code>cutoff</code> splits the samples into two groups, those with an outcome less than or equal to the cutoff, and those with an outcome greater than the cutoff.</p>
<p>The function <code>coef</code> returns the estimated coefficients. The first column is for the linear model (beta), and the second column is for the logistic model (gamma). The first row includes the estimated intercepts, and the other rows include the estimated slopes.</p>
<p>The function <code>coef</code> returns the estimated coefficients. The first column is for the linear model (beta), and the second column is for the logistic model (gamma). The first row includes the estimated intercepts, and the other rows include the estimated slopes.</p>