Top |
#define | isfinite() |
#define | na() |
int | model_missing () |
int | model_has_missing_obs () |
int | first_missing_index () |
int | series_adjust_sample () |
int | list_adjust_sample () |
int | set_miss () |
double | missing_obs_fraction () |
int | any_missing_user_values () |
int | model_add_missmask () |
int first_missing_index (const double *x
,int t1
,int t2
);
int series_adjust_sample (const double *x
,int *t1
,int *t2
);
Adjusts t1
and t2
so as to drop any leading or trailing
missing observations.
int list_adjust_sample (const int *list
,int *t1
,int *t2
,const DATASET *dset
,int *nmiss
);
Drops leading or trailing observations from the sample range
initially given by the values in t1
and t2
if missing values
are found for any of the variables given in list
.
If nmiss
is non-NULL it receives the number of missing values
inside the (possibly reduced) sample range, otherwise it is
considered an error if there are any such missing values.
list |
list of variables to be tested for missing values,
or |
|
t1 |
on entry, initial start of sample range; on exit, start of sample range adjusted for missing values. |
|
t2 |
on entry, initial end of sample range; on exit, end of sample range adjusted for missing values. |
|
dset |
dataset struct. |
|
nmiss |
location to receive number of missing values within (possibly adjusted) sample range. |
int set_miss (const int *list
,const char *param
,DATASET *dset
,PRN *prn
);
Set to "missing" each observation of each series in list
that
has the value represented by param
.
list |
list of variables to process, or an empty list or |
|
param |
string representation of the numerical value to treat as missing. |
|
dset |
dataset struct. |
|
prn |
pointer to printing struct. |
int model_add_missmask (MODEL *pmod
,int n
);
Allocates a missing obs mask of length n
and attaches it
to pmod
. All elements are initialized to '0' (non-missing).