Displaying 2 results from an estimated 2 matches for "oldscor".
Did you mean:
oldscore
2009 May 06
1
Scope question concerning calls within a user defined function
...ibute.
I fixed the problem by creating a global variable /my.data/ within the
function,
naming it l/ogit.test.global,/ not a very good solution.
My question is: How do I handle scope correctly?
Thanks,
Terry Ireland
Script of Experiment:
> library(MASS)
> test.data
Approve Score OldScore
1 Yes 1 12
2 Yes 3 10
3 Yes 5 8
4 No 4 9
5 No 6 7
6 No 8 5
> test.start
Approve ~ 1
> test.finish
Approve ~ Score + OldScore
> logit.test
function(model.start,model.finish,my.data)
{
logit...
2011 Dec 20
0
sedf: remove useless tracing printk and harmonize comments style.
...nf->cputime = 0;
- /* Accumulate total extratime. */
+ /* Accumulate total extratime */
inf->extra_time_tot += now - inf->sched_start_abs;
/* Remove extradomain from head of the queue. */
extraq_del(d, i);
- /* Update the score. */
+ /* Update the score */
oldscore = inf->score[i];
if ( i == EXTRA_PEN_Q )
{
- /*domain was running in L0 extraq*/
- /*reduce block lost, probably more sophistication here!*/
+ /* Domain was running in L0 extraq */
+ /* reduce block lost, probably more sophistication here!*/
/*inf-...