LazStats: Add chm hyperlinks for Nonparametric menu

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7443 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2020-05-10 10:37:19 +00:00
parent 64eaa059cd
commit 8161c3e401
21 changed files with 57 additions and 20 deletions

Binary file not shown.

View File

@ -3,6 +3,8 @@ object BinomialFrm: TBinomialFrm
Height = 175 Height = 175
Top = 338 Top = 338
Width = 340 Width = 340
HelpType = htKeyword
HelpKeyword = 'ProbabilityofaBinomialEvent.htm'
AutoSize = True AutoSize = True
BorderStyle = bsSingle BorderStyle = bsSingle
Caption = 'Binomial Probability Calculator' Caption = 'Binomial Probability Calculator'
@ -17,7 +19,7 @@ object BinomialFrm: TBinomialFrm
AnchorSideTop.Control = Bevel1 AnchorSideTop.Control = Bevel1
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = ComputeBtn AnchorSideRight.Control = ComputeBtn
Left = 121 Left = 127
Height = 25 Height = 25
Top = 145 Top = 145
Width = 54 Width = 54
@ -34,8 +36,8 @@ object BinomialFrm: TBinomialFrm
object ComputeBtn: TButton object ComputeBtn: TButton
AnchorSideTop.Control = Bevel1 AnchorSideTop.Control = Bevel1
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = ReturnBtn AnchorSideRight.Control = CloseBtn
Left = 183 Left = 189
Height = 25 Height = 25
Top = 145 Top = 145
Width = 76 Width = 76
@ -49,23 +51,23 @@ object BinomialFrm: TBinomialFrm
OnClick = ComputeBtnClick OnClick = ComputeBtnClick
TabOrder = 1 TabOrder = 1
end end
object ReturnBtn: TButton object CloseBtn: TButton
AnchorSideTop.Control = Bevel1 AnchorSideTop.Control = Bevel1
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Owner AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 267 Left = 273
Height = 25 Height = 25
Top = 145 Top = 145
Width = 61 Width = 55
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
AutoSize = True AutoSize = True
BorderSpacing.Left = 8 BorderSpacing.Left = 8
BorderSpacing.Top = 8 BorderSpacing.Top = 8
BorderSpacing.Right = 12 BorderSpacing.Right = 12
BorderSpacing.Bottom = 8 BorderSpacing.Bottom = 8
Caption = 'Return' Caption = 'Close'
ModalResult = 1 ModalResult = 11
TabOrder = 2 TabOrder = 2
end end
object Bevel1: TBevel object Bevel1: TBevel

View File

@ -19,7 +19,7 @@ type
PlotChk: TCheckBox; PlotChk: TCheckBox;
ResetBtn: TButton; ResetBtn: TButton;
ComputeBtn: TButton; ComputeBtn: TButton;
ReturnBtn: TButton; CloseBtn: TButton;
FreqAEdit: TEdit; FreqAEdit: TEdit;
FreqBEdit: TEdit; FreqBEdit: TEdit;
PropAEdit: TEdit; PropAEdit: TEdit;
@ -60,10 +60,10 @@ procedure TBinomialFrm.FormActivate(Sender: TObject);
var var
w: Integer; w: Integer;
begin begin
w := MaxValue([ResetBtn.Width, ComputeBtn.Width, ReturnBtn.Width]); w := MaxValue([ResetBtn.Width, ComputeBtn.Width, CloseBtn.Width]);
ResetBtn.Constraints.MinWidth := w; ResetBtn.Constraints.MinWidth := w;
ComputeBtn.Constraints.MinWidth := w; ComputeBtn.Constraints.MinWidth := w;
ReturnBtn.Constraints.MinWidth := w; CloseBtn.Constraints.MinWidth := w;
end; end;
procedure TBinomialFrm.FormCreate(Sender: TObject); procedure TBinomialFrm.FormCreate(Sender: TObject);
@ -104,12 +104,13 @@ begin
lReport.Add('BINOMIAL PROBABILITY TEST'); lReport.Add('BINOMIAL PROBABILITY TEST');
lReport.Add(''); lReport.Add('');
lReport.Add('Frequency of %d out of %d observed', [A, N]); lReport.Add('Frequency of %d out of %d observed', [A, N]);
lReport.Add('The theoretical proportion expected in category A is %.3f', [p]); lReport.Add('The theoretical proportion expected in category A is %.f', [p]);
lReport.Add(''); lReport.Add('');
lReport.Add('The test is for the probability of a value in category A as small or smaller'); lReport.Add('The test is for the probability of a value in category A as small or smaller');
lReport.Add('than that observed given the expected proportion.'); lReport.Add('than that observed given the expected proportion.');
if (N > 35) then //Use normal distribution approximation //Use normal distribution approximation
if (N > 35) then
begin begin
CorrectedA := A; CorrectedA := A;
if A < N * p then CorrectedA := A + 0.5; if A < N * p then CorrectedA := A + 0.5;
@ -117,14 +118,14 @@ begin
z := (CorrectedA - N * p) / sqrt(N * p * Q); z := (CorrectedA - N * p) / sqrt(N * p * Q);
lReport.Add('Z value for Normal Distribution approximation: %.3f', [z]); lReport.Add('Z value for Normal Distribution approximation: %.3f', [z]);
Probability := probz(z); Probability := probz(z);
lReport.Add('Probability: %.4f', [Probability]); lReport.Add('Probability: %6.4f', [Probability]);
end end else
else //Use binomial fomula //Use binomial fomula
begin begin
for X := 0 to A do for X := 0 to A do
begin begin
Probability := combos(X, N) * Power(p,X) * Power(Q,(N - X)); Probability := combos(X, N) * Power(p, X) * Power(Q, N - X);
lReport.Add('Probability of %d = %6.4f', [X, Probability]); lReport.Add('Probability of %2d: %6.4f', [X, Probability]);
SumProb := SumProb + Probability; SumProb := SumProb + Probability;
end; end;
lReport.Add('Binomial Probability of %d or less out of %d: %.4f', [A, N, SumProb]); lReport.Add('Binomial Probability of %d or less out of %d: %.4f', [A, N, SumProb]);

View File

@ -3,6 +3,8 @@ object ChiSqrFrm: TChiSqrFrm
Height = 566 Height = 566
Top = 216 Top = 216
Width = 474 Width = 474
HelpType = htKeyword
HelpKeyword = 'ContingencyChi-Square.htm'
AutoSize = True AutoSize = True
Caption = 'Contingency Chi Squared' Caption = 'Contingency Chi Squared'
ClientHeight = 566 ClientHeight = 566

View File

@ -3,6 +3,8 @@ object CochranQFrm: TCochranQFrm
Height = 344 Height = 344
Top = 203 Top = 203
Width = 414 Width = 414
HelpType = htKeyword
HelpKeyword = 'CochranQTest.htm'
AutoSize = True AutoSize = True
Caption = 'Cochran Q Test' Caption = 'Cochran Q Test'
ClientHeight = 344 ClientHeight = 344

View File

@ -4,6 +4,8 @@ object ConcordFrm: TConcordFrm
Height = 310 Height = 310
Top = 327 Top = 327
Width = 397 Width = 397
HelpType = htKeyword
HelpKeyword = 'KendallsCoefficientofConcordance.htm'
Anchors = [akLeft] Anchors = [akLeft]
AutoSize = True AutoSize = True
Caption = 'Kendal''s Coefficient of Concordance' Caption = 'Kendal''s Coefficient of Concordance'

View File

@ -3,6 +3,8 @@ object FisherFrm: TFisherFrm
Height = 472 Height = 472
Top = 234 Top = 234
Width = 672 Width = 672
HelpType = htKeyword
HelpKeyword = 'FishersExactTest.htm'
Caption = 'Fisher''s Exact Test for a 2 by 2 Table' Caption = 'Fisher''s Exact Test for a 2 by 2 Table'
ClientHeight = 472 ClientHeight = 472
ClientWidth = 672 ClientWidth = 672

View File

@ -3,6 +3,8 @@ object FriedmanFrm: TFriedmanFrm
Height = 330 Height = 330
Top = 186 Top = 186
Width = 418 Width = 418
HelpType = htKeyword
HelpKeyword = 'FriedmanTwoWayANOVA.htm'
AutoSize = True AutoSize = True
Caption = 'The Friedman Two Way ANOVA on Ranks' Caption = 'The Friedman Two Way ANOVA on Ranks'
ClientHeight = 330 ClientHeight = 330

View File

@ -3,6 +3,8 @@ object GenKappaFrm: TGenKappaFrm
Height = 356 Height = 356
Top = 378 Top = 378
Width = 468 Width = 468
HelpType = htKeyword
HelpKeyword = 'GeneralizedKappa.htm'
AutoSize = True AutoSize = True
Caption = 'Generalized Kappa Coefficient' Caption = 'Generalized Kappa Coefficient'
ClientHeight = 356 ClientHeight = 356

View File

@ -1,8 +1,10 @@
object KaplanMeierFrm: TKaplanMeierFrm object KaplanMeierFrm: TKaplanMeierFrm
Left = 849 Left = 596
Height = 406 Height = 406
Top = 368 Top = 239
Width = 505 Width = 505
HelpType = htKeyword
HelpKeyword = 'Kaplan-MeierSurvivalTest.htm'
AutoSize = True AutoSize = True
Caption = 'Kaplan-Meier Survival Analysis' Caption = 'Kaplan-Meier Survival Analysis'
ClientHeight = 406 ClientHeight = 406

View File

@ -3,6 +3,8 @@ object WeightedKappaFrm: TWeightedKappaFrm
Height = 560 Height = 560
Top = 184 Top = 184
Width = 539 Width = 539
HelpType = htKeyword
HelpKeyword = 'KappaandWeightedKappa.htm'
AutoSize = True AutoSize = True
Caption = 'Kappa and Weighted Kappa' Caption = 'Kappa and Weighted Kappa'
ClientHeight = 560 ClientHeight = 560

View File

@ -3,6 +3,8 @@ object KendallTauFrm: TKendallTauFrm
Height = 379 Height = 379
Top = 350 Top = 350
Width = 396 Width = 396
HelpType = htKeyword
HelpKeyword = 'KendallsTauandPartialTau.htm'
AutoSize = True AutoSize = True
Caption = 'Kendall Rank Correlation Tau and Partial Tau' Caption = 'Kendall Rank Correlation Tau and Partial Tau'
ClientHeight = 379 ClientHeight = 379

View File

@ -3,6 +3,8 @@ object KWAnovaFrm: TKWAnovaFrm
Height = 365 Height = 365
Top = 283 Top = 283
Width = 421 Width = 421
HelpType = htKeyword
HelpKeyword = 'Kruskal-WallisOne-WayANOVA.htm'
AutoSize = True AutoSize = True
Caption = 'Kruskal-Wallis One Way ANOVA on Ranks' Caption = 'Kruskal-Wallis One Way ANOVA on Ranks'
ClientHeight = 365 ClientHeight = 365

View File

@ -3,6 +3,8 @@ object LifeTableForm: TLifeTableForm
Height = 590 Height = 590
Top = 122 Top = 122
Width = 818 Width = 818
HelpType = htKeyword
HelpKeyword = 'LifeTable.htm'
AutoSize = True AutoSize = True
Caption = 'Life Table' Caption = 'Life Table'
ClientHeight = 590 ClientHeight = 590

View File

@ -3,6 +3,8 @@ object MannWhitUFrm: TMannWhitUFrm
Height = 321 Height = 321
Top = 256 Top = 256
Width = 373 Width = 373
HelpType = htKeyword
HelpKeyword = 'Mann-WhitneyUTest.htm'
AutoSize = True AutoSize = True
Caption = 'Mann-Whitney U Test' Caption = 'Mann-Whitney U Test'
ClientHeight = 321 ClientHeight = 321

View File

@ -3,6 +3,8 @@ object RIDITFrm: TRIDITFrm
Height = 364 Height = 364
Top = 285 Top = 285
Width = 665 Width = 665
HelpType = htKeyword
HelpKeyword = 'RIDITAnalysis.htm'
AutoSize = True AutoSize = True
Caption = 'Relative to an Identified Distribution Analysis' Caption = 'Relative to an Identified Distribution Analysis'
ClientHeight = 364 ClientHeight = 364

View File

@ -3,6 +3,8 @@ object runstestform: Trunstestform
Height = 438 Height = 438
Top = 209 Top = 209
Width = 376 Width = 376
HelpType = htKeyword
HelpKeyword = 'RunsTestforNormality.htm'
AutoSize = True AutoSize = True
Caption = 'Test for Randomness' Caption = 'Test for Randomness'
ClientHeight = 438 ClientHeight = 438

View File

@ -3,6 +3,8 @@ object SensForm: TSensForm
Height = 579 Height = 579
Top = 161 Top = 161
Width = 478 Width = 478
HelpType = htKeyword
HelpKeyword = 'SensSlopeAnalysis.htm'
AutoSize = True AutoSize = True
Caption = 'Sens Trend Analysis' Caption = 'Sens Trend Analysis'
ClientHeight = 579 ClientHeight = 579

View File

@ -3,6 +3,8 @@ object SpearmanFrm: TSpearmanFrm
Height = 317 Height = 317
Top = 246 Top = 246
Width = 347 Width = 347
HelpType = htKeyword
HelpKeyword = 'SpearmanRankCorrelation.htm'
AutoSize = True AutoSize = True
Caption = 'Spearman Rank Correlation' Caption = 'Spearman Rank Correlation'
ClientHeight = 317 ClientHeight = 317

View File

@ -3,6 +3,8 @@ object WilcoxonFrm: TWilcoxonFrm
Height = 352 Height = 352
Top = 336 Top = 336
Width = 436 Width = 436
HelpType = htKeyword
HelpKeyword = 'WilcoxonMatched-PairsSignedRanks.htm'
AutoSize = True AutoSize = True
BorderStyle = bsDialog BorderStyle = bsDialog
Caption = 'Wilcoxon Matched Pairs Signed Ranks Test' Caption = 'Wilcoxon Matched Pairs Signed Ranks Test'