Functions
fetch_full_dataset ()
DATASET *
fetch_full_dataset (void);
free_subsample_mask ()
void
free_subsample_mask (char *s);
copy_subsample_mask ()
char *
copy_subsample_mask (const char *src,
int *err);
copy_datainfo_submask ()
char *
copy_datainfo_submask (const DATASET *dset,
int *err);
write_datainfo_submask ()
int
write_datainfo_submask (const DATASET *dset,
FILE *fp);
write_model_submask ()
int
write_model_submask (const MODEL *pmod,
FILE *fp);
subsample_check_model ()
int
subsample_check_model (MODEL *pmod,
char *mask);
remove_model_subsample_info ()
int
remove_model_subsample_info (MODEL *pmod);
submask_cmp ()
int
submask_cmp (const char *m1,
const char *m2);
attach_subsample_to_model ()
int
attach_subsample_to_model (MODEL *pmod,
const DATASET *dset);
restrict_sample ()
int
restrict_sample (const char *param,
const int *list,
DATASET *dset,
ExecState *state,
gretlopt opt,
PRN *prn,
int *n_dropped);
restrict_sample_from_mask ()
int
restrict_sample_from_mask (char *mask,
DATASET *dset,
gretlopt opt);
complex_subsampled ()
int
complex_subsampled (void);
dataset_is_complex_subsampled ()
int
dataset_is_complex_subsampled (const DATASET *dset);
get_full_length_n ()
int
get_full_length_n (void);
set_dataset_resampled ()
void
set_dataset_resampled (DATASET *dset,
unsigned int seed);
dataset_is_resampled ()
int
dataset_is_resampled (const DATASET *dset);
set_sample ()
int
set_sample (const char *start,
const char *stop,
DATASET *dset);
restore_full_sample ()
int
restore_full_sample (DATASET *dset,
ExecState *state);
backup_full_dataset ()
int
backup_full_dataset (DATASET *dset);
count_missing_values ()
int
count_missing_values (const DATASET *dset,
gretlopt opt,
PRN *prn,
int *err);
Prints a count of missing values (if any) in the current
dataset over the currently defined sample range (or the
entire data range if OPT_A is given). If OPT_V is given
this includes a count of missing values at each observation;
otherwise it just includes global and per-variable counts.
Returns
0 if no missing values are found (or on error),
otherwise the total number of missing values.
maybe_free_full_dataset ()
void
maybe_free_full_dataset (const DATASET *dset);
model_sample_problem ()
int
model_sample_problem (const MODEL *pmod,
const DATASET *dset);
print_sample_obs ()
void
print_sample_obs (const DATASET *dset,
PRN *prn);
print_sample_status ()
void
print_sample_status (const DATASET *dset,
PRN *prn);
data_report ()
int
data_report (const DATASET *dset,
const char *fname,
PRN *prn);
Write out a summary of the content of the current data set.
Returns
0 on successful completion, non-zero on error.