# Stixbox & logitfit function

**URL:** https://scilab.discourse.group/t/stixbox-logitfit-function/1081
**Category:** General usage
**Created:** [November 9, 2025, 5:30pm UTC](https://scilab.discourse.group/t/stixbox-logitfit-function/1081 "2025-11-09T17:30:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![QwillDune](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/qwilldune/32/152_2.png) [@QwillDune](https://scilab.discourse.group/u/QwillDune)
#### Post date: [November 9, 2025, 5:30pm UTC](https://scilab.discourse.group/t/stixbox-logitfit-function/1081/1 "2025-11-09T17:30:56Z")

</div>

Hello,

The logitfit function in Stixbox needs to be corrected

1. I corrected line 29 from

```auto
if or(abs(one-x*x\one)>0.0000000001) then

```

to

```auto
if or(abs(one-x.*x\one)>0.0000000001) then

```

1. I corrected line 30 from

```auto
fprintf(' Intercept column added \n ');

```

to

```auto
mprintf(' Intercept column added \n ');

```

1. Line 44 also need to be corrected

```auto
ddf = 1 ./ (g0+g1)*ones(1,nb) .* x'*x;

```

but I have not found the right way to correct that line

Can anyone help me?

BR

François
