Matlab

Cross-Read & -Write R, Py, Matlab, Binary Files

2016-06-01. Category & Tags: R, Binary, Mat, Matlab, Python, NumPy, Pandas

Note: feather-format is desigend to transfer data between Py & R [stackoverflow, feather-doc].

.FE #

OBS: only for data.frame type, not even arrays.

py (feather-format) #

Requires: pip install feather-format. (OBS: feather-format NOT feather.)

write:

import numpy as np
import pandas as pd

df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6], 'C':[7,8,9]}, index=['one', 'two', 'three'])

import feather
feather.write_dataframe(df.reset_index(drop=True), 'df.fe')

(though the df is created by pandas)

read:

import feather
df = feather.read_dataframe('df.fe')

py-pandas (canNOT read) #

write: df.reset_index(drop=True).to_feather('df.fe'). Note that feather canNOT handle string-based index names, another solution is drop=False, then index becomes columns.

...

回归分析 In Case Of

2012-09-02. Category & Tags: Matlab Matlab

Pr(c1<=μ<=c2)=1-α:
    α是**显著性水平**(例:0.05或0.10)
    100(1-α)指**置信水平**(例:95%或90%)
    表达方式:interval(c1,c2)——**置信区间**.[1]
**得出参数的估计值**并对参数和方程的_显著性_进行**假设检验**是回归分析的基本任务。[2]
  
  
ref:
[1][http://zhidao.baidu.com/question/161184604](http://zhidao.baidu.com/question/161184604)
[2][http://stat.cufe.edu.cn/statsoft/sites/stat.cufe.edu.cn.statsoft/SPSS_reg.htm](http://stat.cufe.edu.cn/statsoft/sites/stat.cufe.edu.cn.statsoft/SPSS_reg.htm)