⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loadtime.m

📁 The BNL toolbox is a set of Matlab functions for defining and estimating the parameters of a Bayesi
💻 M
字号:
function covariates=loadtime

N=32;
M=12;
B=9;
D=7;
I=M*B*D;

%loads data

load 'C:\frank\mijnmatlabfuncties\cleanedversion2\example_models\anorex\perscov_tijd.txt';
T=perscov_tijd;
T=reshape(T,B*D,N);
T=T';
T(:,1:B:B*D)=[];
covariates.matrix=[T/3600 (T/3600).^2];

names=cell(1,(B-1)*D*2);

    for j=2:B
        for k=1:D
            c=(k-1)*(B-1)+j-1;
            d=(k-1)*B+j;
            names{c}=eval(['''time_',int2str(d),''';']);
            names{(B-1)*D+c}=eval(['''timesq_',int2str(d),''';']);
        end
    end

covariates.names=names;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -