fitted.px | R Documentation |
Calculates fitted values, p(x) for given observations, from model (optionally at given x-value).
## S3 method for class 'px'
fitted(hmmlt, obs = 1:dim(hmmlt$xy)[1], at.x = NULL)
hmmlt |
output from |
obs |
observations (row numbers of |
at.x |
values at which to evaluate p(x) - see below. |
If hmmlt$models
is NULL and
returns vector of values of p(x=hmmlt$xy$x[obs]) if obs given, or vector of values of p(x=hmmlt$xy$x) if obs not given;
returns vector of values of p(x=at.x).
If hmmlt$models
is not NULL and
returns vector of values of p_obs[i](x=hmmlt$xy$x[j]) if obs given, or vector of values of p_i(x=hmmlt$xy$x[j]) for all i if obs not given;
as when at.x is NULL, but with x=at.x instead of hmmlt$xy$x.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.