arch.univariate.ConstantMean.fix¶
-
ConstantMean.fix(params: ndarray[tuple[int], dtype[float64]] | Series | Sequence[float], first_obs: int | str | datetime | datetime64 | Timestamp | None =
None, last_obs: int | str | datetime | datetime64 | Timestamp | None =None) ARCHModelFixedResult¶ Construct an ARCHModelFixedResult from fixed parameters.
- Parameters:¶
- params: ndarray[tuple[int], dtype[float64]] | Series | Sequence[float]¶
User specified parameters to use when generating the result. Must have the correct number of parameters for a given choice of mean model, volatility model and distribution, and be finite.
- first_obs: int | str | datetime | datetime64 | Timestamp | None =
None¶ First observation to use when fixing model. Dates, strings and periods can only be used with pandas inputs that have a DatetimeIndex or a PeriodIndex. An integer must be in [-nobs, nobs], and a date must be in the index. A negative integer counts from the end, as in a slice, so that
first_obs=-100uses the last 100 observations.- last_obs: int | str | datetime | datetime64 | Timestamp | None =
None¶ Last observation to use when fixing model. An integer must be in [-nobs, nobs], and a date must be in the index. As in a slice, the observation at
last_obsis not used, and a negative integer counts from the end, so thatlast_obs=-1drops the last observation.
- Returns:¶
results – Object containing model results.
- Return type:¶
- Raises:¶
TypeError – If
paramscannot be converted to numbers, orfirst_obsorlast_obsis not an integer or a date.ValueError – If
paramsdoes not have one element for each parameter of the model or contains NaN or inf, orfirst_obsorlast_obsis outside the sample.
Notes
Parameters are not checked against model-specific constraints.