Skip to content

Commit

Permalink
Merge pull request #91 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
updating branch
  • Loading branch information
Vitalis95 authored Sep 21, 2022
2 parents 71e9aa7 + 4cf9754 commit fbe68d0
Show file tree
Hide file tree
Showing 79 changed files with 11,877 additions and 2,041 deletions.
8 changes: 4 additions & 4 deletions instat/DlgDefineClimaticData.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions instat/Model/DataFrame/clsDataFramePage.vb
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,15 @@ Public Class clsDataFramePage
columnHeader.bIsFactor = True
ElseIf strHeaderType.Contains("character") Then
columnHeader.strTypeShortCode = "(C)"
ElseIf strHeaderType.Contains("Date") OrElse strHeaderType.Contains("POSIXct") OrElse
strHeaderType.Contains("POSIXt") OrElse strHeaderType.Contains("hms") OrElse
strHeaderType.Contains("difftime") OrElse strHeaderType.Contains("Duration") OrElse
ElseIf strHeaderType.Contains("Date") OrElse strHeaderType.Contains("Duration") OrElse
strHeaderType.Contains("Period") OrElse strHeaderType.Contains("Interval") Then
columnHeader.strTypeShortCode = "(D)"
ElseIf strHeaderType.Contains("POSIXct") OrElse
strHeaderType.Contains("POSIXt") Then
columnHeader.strTypeShortCode = "(D.T)"
ElseIf strHeaderType.Contains("hms") OrElse
strHeaderType.Contains("difftime") Then
columnHeader.strTypeShortCode = "(T)"
ElseIf strHeaderType.Contains("logical") Then
columnHeader.strTypeShortCode = "(L)"
' Structured columns e.g. "circular" are coded with "(S)"
Expand Down
8 changes: 3 additions & 5 deletions instat/clsInstatOptions.vb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Imports RDotNet
iPreviewRows = clsInstatOptionsDefaults.DEFAULTiPreviewRows
iMaxRows = clsInstatOptionsDefaults.DEFAULTiMaxRows
iMaxCols = clsInstatOptionsDefaults.DEFAULTiMaxCols
strComment = clsInstatOptionsDefaults.DEFAULTstrComment
strComment = Translations.GetTranslation(clsInstatOptionsDefaults.DEFAULTstrComment)
strGraphDisplayOption = clsInstatOptionsDefaults.DEFAULTstrGraphDisplayOption
strLanguageCultureCode = clsInstatOptionsDefaults.DEFAULTstrLanguageCultureCode
strWorkingDirectory = clsInstatOptionsDefaults.DEFAULTstrWorkingDirectory
Expand Down Expand Up @@ -143,10 +143,8 @@ Imports RDotNet
SetCommandInOutpt(clsInstatOptionsDefaults.DEFAULTbCommandsinOutput)
End If

If strComment IsNot Nothing Then
SetComment(strComment)
Else
SetComment(clsInstatOptionsDefaults.DEFAULTstrComment)
If strComment Is Nothing Then
SetComment(Translations.GetTranslation(clsInstatOptionsDefaults.DEFAULTstrComment))
End If

If strGraphDisplayOption IsNot Nothing Then
Expand Down
41 changes: 41 additions & 0 deletions instat/clsRegressionDefaults.vb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,38 @@ Public Class clsRegressionDefaults
End Get
End Property

Public Shared ReadOnly Property clsDefaultGLmNBFunction As RFunction
Get

Dim clsNegativeBinomialFunction As New RFunction

clsNegativeBinomialFunction.SetRCommand("glm.nb")
clsNegativeBinomialFunction.SetPackageName("MASS")
Return clsNegativeBinomialFunction
End Get
End Property

Public Shared ReadOnly Property clsDefaultGLmPolrFunction As RFunction
Get

Dim clsRModelFunction As New RFunction

clsRModelFunction.SetRCommand("polr")
clsRModelFunction.SetPackageName("MASS")
Return clsRModelFunction
End Get
End Property

Public Shared ReadOnly Property clsDefaultGLmMultinomFunction As RFunction
Get

Dim clsMultinomFunction As New RFunction

clsMultinomFunction.SetRCommand("multinom")
clsMultinomFunction.SetPackageName("nnet")
Return clsMultinomFunction
End Get
End Property
Public Shared ReadOnly Property clsDefaultGlmFunction As RFunction
Get

Expand Down Expand Up @@ -91,6 +123,15 @@ Public Class clsRegressionDefaults
End Get
End Property

Public Shared ReadOnly Property clsDefaultAnovaIIFunction As RFunction
Get
Dim clsDefaultRaovFunction As New RFunction
clsDefaultRaovFunction.SetPackageName("car")
clsDefaultRaovFunction.SetRCommand("Anova")
Return clsDefaultRaovFunction
End Get
End Property

Public Shared ReadOnly Property clsDefaultFormulaFunction As RFunction
Get
Dim clsDefaultRModelsFunction As New RFunction
Expand Down
8 changes: 4 additions & 4 deletions instat/dlgAppend.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions instat/dlgClimaticCheckDataRain.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions instat/dlgClimaticCheckDataTemperature.vb
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ Public Class dlgClimaticCheckDataTemperature
ucrNudCoeff.SetLinkedDisplayControl(lblCoeff)

ucrChkSame.SetParameter(New RParameter("same", clsSameOp, 1), bNewChangeParameterValue:=False)
ucrChkSame.SetText("Days: (Element1)")
ucrChkSame.SetText("Days:")
ucrChkSame.AddToLinkedControls(ucrNudSame, {True}, bNewLinkedAddRemoveParameter:=True, bNewLinkedHideIfParameterMissing:=True, bNewLinkedChangeToDefaultState:=True, objNewDefaultState:=4)

ucrChkJump.SetParameter(New RParameter("jump", clsJumpOp, 1), bNewChangeParameterValue:=False)
ucrChkJump.SetText("Jump: (Element1)")
ucrChkJump.SetText("Jump:")
ucrChkJump.AddToLinkedControls(ucrNudJump, {True}, bNewLinkedAddRemoveParameter:=True, bNewLinkedHideIfParameterMissing:=True, bNewLinkedChangeToDefaultState:=True, objNewDefaultState:=10)

ucrChkDifference.SetParameter(New RParameter("diff", clsDiffOp, 1), bNewChangeParameterValue:=False)
Expand Down Expand Up @@ -597,7 +597,6 @@ Public Class dlgClimaticCheckDataTemperature
If ucrReceiverElement1.IsEmpty OrElse ucrReceiverElement2.IsEmpty Then
ucrChkDifference.Enabled = False
ucrNudDifference.Enabled = False
ucrChkDifference.Checked = False
Else
ucrChkDifference.Enabled = True
ucrNudDifference.Enabled = True
Expand Down
4 changes: 2 additions & 2 deletions instat/dlgClimaticSummary.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions instat/dlgConversions.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fbe68d0

Please sign in to comment.