Worksheet Learn and AI Assist

The worksheet toolbar has two ways to get guidance. Learn opens the lesson library, including worked examples and practice questions that you can use without an AI connection. AI Assist opens a conversation for the current workbook. While it is open, AI Assist follows the workbook you bring to the front after any reply finishes, restoring that workbook’s conversation and sharing choice.

Ask a question

On Mac, leave Share workbook data unticked to send only the current question and get guidance from the packaged Method Selection guide. Include the full question each time, with any details AI Assist asked for. To include data, check the named workbook for person identifiers and confirm sharing. If two open workbooks have the same name, AI Assist shows their folders. A workbook keeps its own conversation, draft and confirmation when you switch away and return. An active reply stays with the workbook it started in. Choose Stop to end it and follow the most recently selected workbook. Closing the pane also stops the reply.

An empty workbook offers Open example workbook and Workbook help. When the workbook has data, choose Help me choose a method to start with Statistical Method Selection, or search the available commands with Choose a method on Mac or Browse methods on Windows. The selection label follows your worksheet, for example Selection: Sheet!A1:B6 or Current cell: Sheet!A1. On Mac it appears below the workbook name. On Windows it appears below Ask a question or Ask a question about your data.

On Windows, ask how to organise or analyse your data. Leave Share open workbook data unticked to ask a question without sharing the workbook. When you press Send, ChatGPT receives your question and can use the relevant Help. It can also draw on general statistical and R knowledge. Leave names, patient identifiers and other confidential information out of your question. In ordinary use, the recent conversation also provides context. Choose New conversation to leave earlier shared content out.

If you ask the assistant to choose a test, it may first ask what you measured, what you want to compare or how the observations are related. Explain the meaning of any numeric codes, your comparison goal and which measurements come from the same people or units. If the question offers answers such as Matched observations or Separate groups, select the answer that describes your study. On Windows, Help me choose a method follows Statistical Method Selection, and StatsDirect asks its first questions itself. It asks what sort of investigation you are tackling: Comparison of two independent groups, Comparison of response of a group under different conditions or Relationship between two variables measured on the same group, with Assess agreement as a further choice. For either comparison it then asks you to select a measurement scale: Interval or ratio, Ordinal, Nominal with order, Nominal without order or Dichotomous. To compare proportions, choose the comparison and then Dichotomous. For an interval or ratio scale the next card checks the two columns you have selected. Other answers go to the assistant. Use I’m not sure when you need help deciding. If you already know which method you need, ask for it by name.

On Windows, if you want advice based on worksheet values, tick Share open workbook data above the question box. The workbook name appears in parentheses. Only share workbook data if you have removed person identifiable information such as names, addresses, dates of birth, ID codes and identifying free text. Before sharing that workbook for the first time during a session, tick I confirm this workbook does not contain person identifiable information. This confirms sharing for the named workbook for the rest of the session. Each workbook needs its own confirmation, which is remembered when you switch between workbooks. The example workbook starts with both boxes ticked while it is unchanged, because it holds example data only. If you change it, its sharing turns off until you confirm it yourself. When workbook sharing is on, AI Assist can also read analysis results in the report in front when you ask about them. Before it first reads a report it asks May I read the report, followed by the report’s name. It reads nothing unless you choose Yes. Your answer is remembered for that report until you start a new conversation or turn sharing off. Turn sharing off to stop further workbook and report reads.

Reply in progress… appears beside Stop while a reply is being prepared or written. Expand Data used under a reply to see the workbook, worksheet and ranges read. (headings) marks first-row text sent as column titles. (part of the worksheet’s used range) marks a partial read. If a reply stops or fails after reading cells, its note remains, even if the reply shows only [Reply stopped before any text.] or [No reply was received.].

Open suggested R code

AI Assist answers questions and leaves worksheet cells unchanged. If a reply includes code, expand the suggested code to see it. Choose Open in R to open an editable script. StatsDirect includes a fixed snapshot of the worksheet values read for that reply. Ask a follow-up to get a new analysis using current approved values.

Review the code, then choose Run script in the R window. When R finishes, choose Add output to report to save the text output and charts in a StatsDirect report. On Windows, this adds the newest run that has output. To add an earlier run, choose it from the list beside the button first. The report names the script and the run. It says if the run was interrupted or if some of its output is no longer in the console.

Choose and confirm a method

Select the cells in the worksheet, then select Choose a method on Mac or Browse methods on Windows. This opens the same list as Analyse on the worksheet toolbar. If a report is active, the picker returns to the workbook associated with the chat and the selected report remains the destination for results. You can search for a method such as Mann–Whitney and select it. AI Assist can also suggest a method from this list in response to a question.

When asked about your study design, select Same people or units if both measurements come from each person or unit, or Separate groups for independent samples. The next card helps you choose a method using the size and distribution of the samples. Select two adjacent visible columns in one worksheet range. On Mac, if First row has column names is ticked, select data below the names. A selection of the names alone contains no data.

  • For paired data, use Check selected pairs if prompted. The local check counts complete pairs, can show Shapiro–Wilk W and P for up to 100 pairs, and may ask you to review the differences. Above 100 pairs it reports the number outside the 3 × IQR fences, skewness and excess kurtosis. Large sample (more than 100 complete pairs) and Small or medium · Approximately normal differences lead to the paired t test. Non-normal differences leads to Wilcoxon signed ranks and is also available above 100 pairs. Consider Wilcoxon for a shift in location when the differences are roughly symmetric. Use the paired t test for a question about the mean difference.
  • For independent samples, choose Check two sample columns or Use these as separate samples as shown. The card shows each group’s count and can show Shapiro–Wilk for a group with up to 100 observations. Large samples (more than 100 in each group) leads to the two-sample z test, Small or medium · Approximately normal within groups to the unpaired t test, and Non-normal distributions within groups to Mann–Whitney.

On Windows, these two cards use the wording of Statistical Method Selection in place of the button names above: Large sample (n > 100), Small to medium sample from a normal distribution and Small to medium sample from a non-normal distribution. A card offers only the choices that fit the counts it shows; above 100 a non-normal choice remains. For independent groups, two selected columns are taken as the two samples. If they hold the same number of observations, the card first asks whether they are independent groups or paired measurements. The card says what the Shapiro–Wilk results mean. Treat them as a guide and look at a plot of the data as well, for example a histogram, a box and whisker plot or a normal plot.

Check the reason under Suggested branch, or follow Review the differences before deciding. Use Change design to go back. The checks run on your computer even when workbook sharing is off. If a choice conflicts with the counted sample size, the card explains which choices apply. If the card refreshes after a change to the selection, choose again on the updated card.

The confirmation in the chat shows the method, its menu location, the worksheet and selected cells, and the destination when the method produces a report. Check these details, then choose Continue on Mac or Continue to analysis on Windows. StatsDirect opens the usual controls or runs the method with the available settings. It asks you to choose the method again if the worksheet, selection or report destination has changed.

Use Change sample choice in a confirmation to return to the sample card, or Change design when that option appears. On Mac, choose Cancel to close the confirmation.

AI Assist can read approved worksheet data. On Windows, a native Data command may change worksheet cells after you confirm and use its usual StatsDirect controls. Choosing a method and continuing in StatsDirect sends no workbook data or results to ChatGPT.

Using AI Assist under an organisation's policy

On Mac, an administrator can turn off online AI. The lesson library, local Help and the Analysis menu stay available.

On Windows, when your organisation restricts data sharing (level 2), AI Assist can answer questions using packaged Help. You can still use the local method cards, check a selection and confirm and run an analysis. Workbook sharing is unavailable. Each request sends the latest question and relevant Help. Your workbook, earlier conversation and local results stay on your computer. If the assistant asks for more information, send the full question again in one message with all the requested non-confidential details, such as what you measured, what you want to compare and how the observations are related.

On Windows, when your organisation restricts AI (level 3), AI Assist cannot connect. Learn, local help, and the analyses on the Analysis menu remain available. See Script AI for sign-in and Windows policy details.