Subject: | XploRe: Learning Guide |
See XploRe: |
Quantlet: | quant01 | |
Description: | Example quantlet which generates a regression line. | |
Download: | quant01.xpl |
n = 10 ; number of observations randomize(17654321) ; sets random seed beta = # (1, 2) ; defines intercept and slope x = matrix(n)~sort(uniform(n)) ; creates design matrix m = x*beta ; defines regression line
Subject: | XploRe: Learning Guide |
See XploRe: |