lfit | R Documentation |

Fits a least square linear model.

lfit(x, y, eps=1e-8)

`x` |
a result of ModelMatrix |

`y` |
a column vector of response, dependent variable |

`eps` |
Less than this value is considered as zero. |

Minimum version of least square fit of a linear model

`coeffcients` |
beta coefficients |

`g2` |
g2 inverse |

`rank` |
rank of the model matrix |

`DFr` |
degree of freedom for the residual |

`SSE` |
sum of squares error |

`SST` |
sum of squares total |

`DFr2` |
degree of freedom of the residual for beta coefficient |

Kyun-Seop Bae k@acr.kr

`ModelMatrix`

f1 = uptake ~ Type*Treatment + conc x = ModelMatrix(f1, CO2) y = model.frame(f1, CO2)[,1] lfit(x, y)

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.