简体   繁体   English

使用数据分析工具包进行回归会引发错误 [Excel]

[英]regression using Data Analysis toolpack throwing up errors [Excel]

I have a table as follows.我有一张如下表。 I'm trying to use the regression feature to get an equation for the data.我正在尝试使用回归功能来获取数据的方程。 我的桌子

Here are my inputs for the regression:这是我的回归输入:

我的输入

But I get the following error when hitting OK:但是点击确定时出现以下错误:

我的错误

Can anyone help me figure out what I'm doing wrong please?谁能帮我弄清楚我做错了什么?

This is just speculation, but I'm wondering if the error message is misleading?这只是猜测,但我想知道错误信息是否具有误导性? If I try this in Excel 365 I get the following:如果我在 Excel 365 中尝试这个,我会得到以下信息:

在此处输入图像描述

Therefore I try extending the number of rows by 1:因此,我尝试将行数增加 1:

在此处输入图像描述

and get a result, although some stats are missing:并得到一个结果,尽管缺少一些统计数据:

在此处输入图像描述

If I add another row of data, I get all the stats.如果我添加另一行数据,我会得到所有的统计数据。

So I suggest increasing the number of rows in your data and seeing if it makes any difference.所以我建议增加数据中的行数,看看它是否有任何不同。

Can you try updating the Input X any Y ranges?您可以尝试更新输入 X 任何 Y 范围吗? Try following:尝试以下操作:

Input Y Range: $B$2:$B$4输入 Y 范围: $B$2:$B$4

Input X Range: $C$2:$E$4输入 X 范围: $C$2:$E$4

As per your screen grab current range includes the column header which is a string and might be the reason for error.根据您的屏幕抓取当前范围包括 header 列,这是一个字符串,可能是错误的原因。

First of all sample set remains too low.首先,样本集仍然太低。 So, the reliability of the analysis will be questionable.因此,分析的可靠性将受到质疑。 And that way you are getting error for value.这样你就会得到价值错误。

Your other problem is row and column value is same row must be greater than column.您的另一个问题是行和列值是同一行必须大于列。

And you can execute this analysis in SPSS or another program.您可以在 SPSS 或其他程序中执行此分析。 I'm saying again your data isn't enough for this analysis.我再说一遍,您的数据不足以进行此分析。

BEST REGARDS...此致...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM