hokiespurs / learnbook

my summary documents for math and engineering concepts
0 stars 0 forks source link

make lsr function #4

Closed hokiespurs closed 7 years ago

hokiespurs commented 7 years ago

Generate a function "lsr.m" which which shares a similar syntax to nlinfit, but can perform:

LSR Function Format

function [beta,R,J,CovB,MSE,ErrorModelInfo] = lsr(X,Y,modelfun,beta0,options)
% Inputs:
%   - X              : Predictor variables
%   - Y              : Response values
%   - modelfun       : Model function handle @modelfun(beta,X)
%   - beta0          : Initial coefficient values
%   - options        : Structure with optional parameters
% 
% Outputs:
%   - beta           : Estimated regression coefficients
%   - R              : Residuals
%   - J              : Jacobian
%   - CovB           : Estimated Variance Covariance Matrix
%   - MSE            : Mean Squared Error (Computed Reference Variance)
%   - ErrorModelInfo : Information about error model 

Enhancements

Maintain Capabilities

Functions that will call it

hokiespurs commented 7 years ago
hokiespurs commented 7 years ago

Final Polishing of LSR.M

Consolidate Checks to CheckLSR.M

Generate Examples Script exampleLSR.m

hokiespurs commented 7 years ago

Documentation Layout

hokiespurs commented 7 years ago

ErrorModelInfo

hokiespurs commented 7 years ago

finished draft of lsr, but its in general-purpoise-matlab