-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented Updates Describe > Two Variable Summarise #9074
Implemented Updates Describe > Two Variable Summarise #9074
Conversation
@Vitalis95 that's looking very promising. Here is the option for 2 variables when Numeric by Numeric a) In the 3 variable case, with the first and second numeric could you add the Means and Sig Level as well and also the Swap and the misssing values option. |
@lilyclements , what is your comment on this? The interaction term is not in the |
@lilyclements and @Vitalis95 I was delaying on this dialog. But it has now become urgen, because the merged version of this dialog, doesn't do the ANOVA at all. It gives a bug. The 2-way ANOVA is working on this dialog, so let's merge it as soon as we can. When x is numeric it should give the intercept and slope. In this example the means are even more ridiculous if you swap the variables. c) The categorical by numeric should give summaries. This is fine in the current version, but has gone (wrongly) to yet more ANOVA tables in this pull request. Here is the running version: If we can get these 2-variable options working well, then either attack the 3 variable stuff quickly as well - ideal, or disable the 3 variables and merge this. Then attack the 3 variable case. |
@Vitalis95 @lilyclements has now added trhe option for the Total and changed the Means into Means/Model. That's great. |
@rdstern about c), you had suggested earlier the the |
@Vitalis95 that's right. Did I get that wrong in my checking? That would be a relief. So now, does categorical by numeric still give summary tables? And when you swap it gives ANOVA? If so, that's great and please disregard c). |
Update data_object_R6.R
@lilyclements , following this comment, could the |
@Vitalis95 that's exactly what I was hoping for with the Total line. |
@@ -4524,8 +4524,7 @@ DataSheet$set("public", "has_labels", function(col_names) { | |||
} | |||
) | |||
|
|||
DataSheet$set("public", "anova_tables2", function(x_col_names, y_col_name, signif.stars = FALSE, sign_level = FALSE, means = FALSE) { | |||
|
|||
DataSheet$set("public", "anova_tables2", function(x_col_names, y_col_name, total = TRUE, signif.stars = FALSE, sign_level = FALSE, means = FALSE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Vitalis95 apologies. I have now added total
as a parameter> I've set it to be TRUE
by default but if you want it as FALSE
by default then set this line here to be total = FALSE
instead of total = TRUE
Make sure you pull changes into your branch to avoid potential conflicts too.
@lilyclements , I pulled the changes and now there is an error, |
…mmaries Three var summaries
@Vitalis95 thanks for this - yes, this is a great point. I forgot to update |
Anova changes
@Vitalis95 and @lilyclements this is looking great!
|
@rdstern , let me include the above comments then you will check |
@Vitalis95 looks really good now. I'll just wait to see if @lilyclements makes any changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Vitalis95 looks good to me too!
@Vitalis95 @rdstern apologies didn't mean to approve. I will make some changes to the R code |
Removing lists to remove the square brackets, and adding cat to print
@rdstern I made the changes you requested. You can now test it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lilyclements you now give the means twice, and not the ANOVA table!
If possible could you, or @Vitalis95 also improve the spacing of the controls, when there are both numeric variables
@rdstern so I did, apologies. I've fixed that now (hopefully!). Very sorry for that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lilyclements that's looking much better now.
a) Great that the F-prob is like that now. Thanks
b) Could you swap the order back, so the ANOVA comes before the means or the model? I see the ANOVA as the basic result, optionally followed by the model or means when needed.
c) Can you get rid of the extra tibble details, and the [[1]], etc? If that's too big to do now, then we could approve with these, and then improve the presentation, when we add the 3-variable stuff in a new pull request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Vitalis95 I've updated map
to be walk
for two classes/functions?
Are these classes functions only used for anova_table2
bits?
walk
means that it will not print output, so will not give the list output!
@Vitalis95 are you happy with these changes? (Make sure you pull changes too next time you work on this - I've made changes now sorry!)
@rdstern does this now work for you how you would like it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lilyclements I was not sure what has changed. There is still the tibble-like output.
I am approving, because it is now so much better than the vurrent merged one. We will add another pull request for the 3 variable case, and that also gives another opportunity to improve the formatting of this output.
@N-thony over to you to check, and hopefully merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Vitalis95 I made a few comments. I'm working now with Chris to have our first 64 bits only version. If you can make the change quickly, we can get this included in this version.
instat/dlgDescribeTwoVariable.vb
Outdated
'ElseIf IsFactorByFactorByNumeric Then | ||
' ucrReorderSummary.Visible = True | ||
' cmdSummaries.Visible = True | ||
' ucrSaveTable.Visible = True | ||
' ucrChkSummariesRowCol.Visible = True | ||
' ucrSaveTable.Location = New Point(23, 440) | ||
' ucrBase.clsRsyntax.SetBaseROperator(clsJoiningPipeOperator) | ||
' ucrSaveTable.SetPrefix("summary_table") | ||
' ucrSaveTable.SetSaveType(RObjectTypeLabel.Table, strRObjectFormat:=RObjectFormat.Html) | ||
' ucrSaveTable.SetAssignToIfUncheckedValue("last_table") | ||
' ucrSaveTable.SetCheckBoxText("Save Table") | ||
' clsJoiningPipeOperator.SetAssignToOutputObject(strRObjectToAssignTo:="last_table", | ||
' strRObjectTypeLabelToAssignTo:=RObjectTypeLabel.Table, | ||
' strRObjectFormatToAssignTo:=RObjectFormat.Html, | ||
' strRDataFrameNameToAddObjectTo:=ucrSelectorDescribeTwoVar.strCurrentDataFrame, | ||
' strObjectName:="last_table") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
instat/dlgDescribeTwoVariable.vb
Outdated
'ucrChkDisplayMargins.Visible = IsFactorByFactorByFactor() | ||
'ucrInputMarginName.Visible = ucrChkDisplayMargins.Checked AndAlso IsFactorByFactorByFactor() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
instat/dlgDescribeTwoVariable.vb
Outdated
'ElseIf rdoThreeVariable.Checked Then | ||
' ucrChkOmitMissing.Visible = IsFactorByNumericByNumeric() OrElse IsNumericByNumericByFactor() | ||
'Else | ||
' ucrChkOmitMissing.Visible = False | ||
' cmdMissingOptions.Visible = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
instat/dlgDescribeTwoVariable.vb
Outdated
'If IsNumericByNumericByFactor() Then | ||
' ' If ucrChkSwapXYVar.Checked Then | ||
' ' clsCombineSwapAnova2Table.AddParameter("y", ucrReceiverThreeVariableThirdVariable.GetVariableNames(True), iPosition:=2, bIncludeArgumentName:=False) | ||
' ' Else | ||
' ' clsCombineAnova2Function.AddParameter("y", ucrReceiverThreeVariableThirdVariable.GetVariableNames(True), iPosition:=2, bIncludeArgumentName:=False) | ||
|
||
' ' End If |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@N-thony , have a look at it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rdstern over to you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@N-thony I am approving, as this is an important advance. It will be good for it to be merged.
@Vitalis95 please can you make a new pull request for the Three Variable part. That will be even more exciting. And remind @lilyclements about the R bit, for parallel and full, as well as making the result neater for all the ANOVA.
Fixes partly #4952
@rdstern , have a look at the progress made