Last chance! 50% off unlimited learning
Sale ends in
normal1(lmean="identity", lsd="loge",
emean=list(), esd=list(), zero=NULL)
Links
for more choices.Links
for more choices.
Being a positive quantity, a log link is the default.earg
in Links
for general information.zero=2
will be used, if used at all.
The default value NULL
means both l"vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
and vgam
.gaussianff
,
posnormal1
,
tobit
,
cnormal1
,
dcnormal1
,
studentt
.n = 200
x = rnorm(n)
y = rnorm(n, mean=1-3*x, sd=exp(1+0.2*x))
fit = vglm(y ~ x, normal1)
coef(fit, matrix=TRUE)
# Generate a random sample from a N(mu=theta, sigma=theta)
# distribution with theta=10. Then estimate theta.
theta = 10
y = rnorm(100, m=theta, sd=theta)
fit = vglm(y ~ 1, normal1(lsd="identity"),
constraints=list("(Intercept)"=rbind(1,1)))
coef(fit, matrix=TRUE)
Run the code above in your browser using DataLab