How to do the equivalent of Excel linest function?

19 ビュー (過去 30 日間)
Tom Graney
Tom Graney 2017 年 8 月 13 日
コメント済み: Tom Graney 2017 年 8 月 14 日
I have been solving these problems using Excel linest for years, but I want to solve problems that are too large for Excel. Something on the order of 200 independent variables (predictors) and 5000 observations. I've looked at some of the examples and tried to follow the help, but as with all programming, unless you do it exactly right you get nothing. I need a little guidance to build my first model. Once I have the coefficients, I will move them to another environment for further evaluation. The predictors are financial market technicals. The observations are hypothetical profit or loss.
Thanks for any assistance. I can load my data (csv file) into a workspace and then to the command window, but when I open the curvefit toolbox, I can get no further.

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 8 月 14 日
  1 件のコメント
Tom Graney
Tom Graney 2017 年 8 月 14 日
This is what I have found with internet search: 1)Put my data in an Excel file, naming the columns with the independent and dependent variable names. 2) In the command window: MyTable = readtable("filespec") 3) In the command window: MyModel = fitlm(MyTable)
Presto, I have my answer. Thanks MatLab.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by