Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

Logistic Regression

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-17-2007, 09:30 AM
Basic4ppc Veteran
 
Join Date: Apr 2007
Posts: 269
Default Logistic Regression

Hi, this utility performs logistic regression, in which a dichotomous outcome is predicted by one or more variables.
It is mainly a translation from the statistical pages by John Pezzulo (http://www.statpages.org/logistic.html) with the addition of some features.
Feel free to use and have fun with it.
With thanks to the author of the original pages from which we can learn a lot (and provide a neverending source of prgrams to make...)
Marc
Attached Images
File Type: jpg LogReg.jpg (11.9 KB, 57 views)
Attached Files
File Type: zip LogReg.zip (9.8 KB, 59 views)
Reply With Quote
  #2 (permalink)  
Old 06-17-2007, 11:04 AM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi Stellaferox,

the first time I've seen somebody drawing a graph! Looks very nice

But just as a reminder you should always try to clean the code before providing it on this forum.
The scrollbar.dll is never used (comments in the sub App_Start) but the component is still present in the project. So I'll get an error opening you program since the dll it is not provided with the zip file (as you really don't need it).
And there is a "useless" bar object defined. The Sub bar_ValueChanged can never be executed.
Additionally you should aways use the tool "check for unassigned / unused variables" as there are some more statements that are never used.


I hope you won't be angry to me
specci48
Reply With Quote
  #3 (permalink)  
Old 06-17-2007, 11:34 AM
Basic4ppc Veteran
 
Join Date: Apr 2007
Posts: 269
Default

hi specci48,
no, not angry at all!! any help is welcome. yes, i included a scrollbar in the output form (results) but could not get it to work properly. somewhere along the lines in the results page is the line "Odds Ratios and 95% Confidence Intervals..." which displays "intervals" on the next line. I wanted to use the scrollbar to get it on one line but didnt know how so i temporarily disabled the scrollbar.
the code has to cleaned and sped up anyway.
if you have any suggestions i'd be glad...
Reply With Quote
  #4 (permalink)  
Old 06-17-2007, 12:00 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi Stellaferox,

I see what you are trying to do with the scrollbar but I think this is not possible with a multiline textbox since you can't stop the lines form wrapping automatically. The example I provided in "our" previous thread has only a single line textbox...


specci48
Reply With Quote
  #5 (permalink)  
Old 06-17-2007, 12:03 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Posts: 269
Default

OK, thnx, i'll remove the scrollbar from the code.....
Reply With Quote
  #6 (permalink)  
Old 06-18-2007, 06:57 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Hi Guys

Sterella, please do clean up the code because i've been trying to run your app and it kesps erroring out...I like the interface design but would like also to ave a more "hands on" help file or tutorial about the features...
Otherwise looks promissing..MaYbe it wil help me win EuroMillions.....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #7 (permalink)  
Old 06-18-2007, 07:54 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Posts: 269
Default

Code is cleared out up until this point. I'd like to make it faster when machinelanguage comes into the basic4ppc picture.....
Reply With Quote
  #8 (permalink)  
Old 06-18-2007, 07:55 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Posts: 269
Default

ehhhh.....forgot this.....
Attached Files
File Type: sbp LogReg.sbp (21.3 KB, 42 views)
Reply With Quote
  #9 (permalink)  
Old 06-18-2007, 08:52 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Nice workaround for your scrollbar problem cutting "confidence" into "conf" ...

And a small bug report: Choosing open/save and then cancelling the open/save causes an error.
Reply With Quote
  #10 (permalink)  
Old 06-18-2007, 08:59 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Posts: 269
Default

thnx, I'll look into that the coming days. Always thankfull for bug reports. Meanwhile working n a random number generator with several features like filesaving and a scaling utility which can rescale a given range of numbers. Mainly because I use those functions a lot....
Marc
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 12:14 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0