分位数回归 matlab,如何使用MATLAB进行分位数回归?

该函数展示了如何在MATLAB中进行分位数回归。输入包括数据x和y、要计算的分位数tau、多项式阶数order以及用于统计推断的bootstrap迭代次数Nboot。函数返回拟合参数p和统计信息stats,包含标准误差、bootstrapped多项式系数和95%置信区间。示例代码展示了一个二阶分位数回归并绘制了结果。
摘要由CSDN通过智能技术生成

function [p,stats]=quantreg(x,y,tau,order,Nboot)

% Quantile Regression

%

% USAGE: [p,stats]=quantreg(x,y,tau[,order,nboot]);

%

% INPUTS:

%   x,y: data that is fitted. (x and y should be columns)

%        Note: that if x is a matrix with several columns then multiple

%        linear regression is used and the "order" argument is not used.

%   tau: quantile used in regression.

%   order: polynomial order. (default=1)

%          (negative orders are interpreted as zero intercept)

%   nboot: number of bootstrap surrogates used in statistical inference.(default=200)

%

% stats is a structure with the following fields:

%      .pse:    standard error on p. (not independent)

%      .pboot:  the bootstrapped polynomial coefficients.

%      .yfitci: 95% confidence interval on "polyval

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值