subsample

subsample

Functions

Object Hierarchy


Description

Functions

RESAMPLED

#define RESAMPLED ((char *) 0xdeadbeef)


fetch_full_dataset ()

DATASET *
fetch_full_dataset (void);

Returns


free_subsample_mask ()

void
free_subsample_mask (char *s);


copy_subsample_mask ()

char *
copy_subsample_mask (const char *src,
                     int *err);

Returns


copy_datainfo_submask ()

char *
copy_datainfo_submask (const DATASET *dset,
                       int *err);

Returns


write_datainfo_submask ()

int
write_datainfo_submask (const DATASET *dset,
                        FILE *fp);

Returns


write_model_submask ()

int
write_model_submask (const MODEL *pmod,
                     FILE *fp);

Returns


submask_cmp ()

int
submask_cmp (const char *m1,
             const char *m2);

Returns


attach_subsample_to_model ()

int
attach_subsample_to_model (MODEL *pmod,
                           const DATASET *dset);

Returns


add_dataset_to_model ()

int
add_dataset_to_model (MODEL *pmod,
                      const DATASET *dset,
                      gretlopt opt);

Returns


restrict_sample ()

int
restrict_sample (const char *line,
                 const int *list,
                 DATASET *dset,
                 ExecState *state,
                 gretlopt opt,
                 PRN *prn,
                 int *n_dropped);

Returns


restrict_sample_from_mask ()

int
restrict_sample_from_mask (char *mask,
                           DATASET *dset,
                           gretlopt opt,
                           int *n_dropped);

Returns


complex_subsampled ()

int
complex_subsampled (void);

Returns


get_full_length_n ()

int
get_full_length_n (void);

Returns


set_dataset_resampled ()

void
set_dataset_resampled (DATASET *dset);


dataset_is_resampled ()

int
dataset_is_resampled (const DATASET *dset);

Returns


set_sample ()

int
set_sample (const char *line,
            DATASET *dset);

Returns


restore_full_sample ()

int
restore_full_sample (DATASET *dset,
                     ExecState *state);

Returns


backup_full_dataset ()

int
backup_full_dataset (DATASET *dset);

Returns


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.

Parameters

dset

dataset struct.

 

opt

use OPT_V for verbose operation, OPT_A to examine all data.

 

prn

printing struct.

 

err

location to receive error code.

 

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 (MODEL *pmod,
                      const DATASET *dset);

Returns


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.

Parameters

dset

data information struct.

 

fname

filename for current datafile.

 

prn

gretl printing struct.

 

Returns

0 on successful completion, non-zero on error.

Types and Values