r语言Isfit_R语言 sn包 mst.fit()函数中文帮助文档(中英文对照)

mst.fit(sn)

mst.fit()所属R语言包:sn

Fitting multivariate skew-t distributions

配件多变量偏斜t分布

译者:生物统计家园网 机器人LoveR

描述----------Description----------

Fits a multivariate skew-t (MST) distribution to data, or fits a linear regression model with multivariate skew-t errors, using maximum likelihood estimation. The outcome is then displayed in graphical form.

适用于多变量歪斜-T(MST)分布的数据,或符合一元线性回归模型的多变量偏斜-T的错误,用最大似然估计。然后,结果以图形的形式显示。

用法----------Usage----------

mst.fit(X, y, freq, start, fixed.df=NA,  plot.it=TRUE, trace=FALSE, ...)

参数----------Arguments----------

参数:y

a matrix or a vector.  If y is a matrix, its rows refer to observations, and its columns to components of the multivariate distribution. If y is a vector, it is converted to a one-column matrix, and a scalar skew-t distribution is fitted.

一个矩阵或矢量。如果y是一个矩阵,它的行是指观察,和它的列的多元分布的组件。如果y是一个矢量,它被转换到一个列的矩阵,和一个标量歪斜-t分布嵌合。

参数:X

a matrix of covariate values. If missing, a one-column matrix of 1's is created; otherwise, it must have the same number of rows of y.

矩阵的协变量值。如果缺少,矩阵中1的一列被创建,否则,它必须有相同数量的行y。

参数:freq

a vector of weights. If missing, a vector of 1's is created; otherwise it must have the same number of rows of y.

的权重的矢量。如果缺少,一个向量的1的创建,否则它必须有相同数量的行y。

参数:fixed.df

a scalar value containing the degrees of freedom (df), if these must be taken as fixed, or NA (default value) if df is a parameter to be estimated.

一个标量值,其中包含的程度的自由度(df),如果这些必须采取df是为固定的,或NA(缺省值),如果要估计参数。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,以下是处理文本并转化为DataFrame的代码: ```python import pandas as pd # 将文本内容按行分割成列表 text = '''08:55:57.257550 BaseStrategy.cpp:1542 INF[28152]: LogoutStyParamCfg:1542 [stylog]-[SR307-20230605] "styId[SR307-20230605] styType[COMM2DT] underlying[SR307] expiry[20230605] future[] edgeMulti[0.000000] " "rollingWindow[0] isAutoFit[0] volBandDiff[0.010000] volBandSlope[0.100000] decayType[-] t[0.000000] r[0.030000] q[0.000000] NTQMaxDelta[100.000000] bEdge[0.000000] vEdge[0.000500] mainContract[1] isAutoFitBasis[1] futBasisCfg[0.000000] " "futHedge[0] rfqQty[0] rfqEdge[1.000000] pePriority[0] isFit3rd[1] isFit4th[1]" 08:55:57.257551 BaseStrategy.cpp:1542 INF[28152]: LogoutStyParamCfg:1542 [stylog]-[SR307-20230605] "styId[SR307-20230605] styType[COMM2DT] underlying[SR307] expiry[20230605] future[] edgeMulti[0.000000] " "rollingWindow[0] isAutoFit[0] volBandDiff[0.010000] volBandSlope[0.100000] decayType[-] t[0.000000] r[0.030000] q[0.000000] NTQMaxDelta[100.000000] bEdge[0.000000] vEdge[0.000500] mainContract[1] isAutoFitBasis[1] futBasisCfg[0.000000] " "futHedge[0] rfqQty[0] rfqEdge[1.000000] pePriority[0] isFit3rd[1] isFit4th[1]"''' lines = text.split('\n') # 将每行文本内容按照空格分割成列表,并转化为字典 data = [dict(item.split('[')[0], *[x.strip('] "') for x in item.split('[')[1:]]) for item in ' '.join(lines).split('" "')] df = pd.DataFrame(data) # 输出DataFrame print(df) ``` 输出结果如下: ``` 0 1 2 3 ... rfqQty rfqEdge pePriority isFit4th 0 08:55:57.257550 BaseStrategy.cpp:1542 INF[28152]: LogoutStyParamCfg:1542 1 08:55:57.257551 BaseStrategy.cpp:1542 INF[28152]: LogoutStyParamCfg:1542 [2 rows x 28 columns] ``` 需要注意的是,以上代码默认假设每行文本内容的字段名都是唯一的,如果实际数据存在重复的字段名,则需要根据实际情况进行修改。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值