Synopsis
enum SubsampleMode;
double*** fetch_full_Z (void);
void reset_full_Z (double ***pZ);
DATAINFO* fetch_full_datainfo (void);
char* copy_subsample_mask (const char *src);
char* copy_datainfo_submask (const DATAINFO *pdinfo);
int write_datainfo_submask (const DATAINFO *pdinfo,
FILE *fp);
int write_model_submask (const MODEL *pmod,
FILE *fp);
int submask_cmp (const char *m1,
const char *m2);
int attach_subsample_to_model (MODEL *pmod,
const DATAINFO *pdinfo);
int restrict_sample (const char *line,
const int *list,
double ***pZ,
DATAINFO **ppdinfo,
ExecState *state,
gretlopt opt,
PRN *prn);
int restrict_sample_from_mask (char *mask,
int mode,
double ***pZ,
DATAINFO **ppdinfo,
ExecState *state);
int complex_subsampled (void);
int get_full_length_n (void);
int set_sample (const char *line,
const double **Z,
DATAINFO *pdinfo);
int restore_full_sample (double ***pZ,
DATAINFO **ppdinfo,
ExecState *state);
int count_missing_values (double ***pZ,
DATAINFO *pdinfo,
PRN *prn);
int add_dataset_to_model (MODEL *pmod,
const DATAINFO *pdinfo);
void free_model_dataset (MODEL *pmod);
void maybe_free_full_dataset (const DATAINFO *pdinfo);
Details
enum SubsampleMode
typedef enum {
SUBSAMPLE_NONE,
SUBSAMPLE_DROP_MISSING,
SUBSAMPLE_USE_DUMMY,
SUBSAMPLE_BOOLEAN,
SUBSAMPLE_RANDOM,
SUBSAMPLE_UNKNOWN
} SubsampleMode;
fetch_full_Z ()
double*** fetch_full_Z (void);
reset_full_Z ()
void reset_full_Z (double ***pZ);
fetch_full_datainfo ()
DATAINFO* fetch_full_datainfo (void);
copy_subsample_mask ()
char* copy_subsample_mask (const char *src);
copy_datainfo_submask ()
char* copy_datainfo_submask (const DATAINFO *pdinfo);
write_datainfo_submask ()
int write_datainfo_submask (const DATAINFO *pdinfo,
FILE *fp);
write_model_submask ()
int write_model_submask (const MODEL *pmod,
FILE *fp);
submask_cmp ()
int submask_cmp (const char *m1,
const char *m2);
attach_subsample_to_model ()
int attach_subsample_to_model (MODEL *pmod,
const DATAINFO *pdinfo);
pmod : |
|
pdinfo : |
|
| Returns : |
|
restrict_sample ()
int restrict_sample (const char *line,
const int *list,
double ***pZ,
DATAINFO **ppdinfo,
ExecState *state,
gretlopt opt,
PRN *prn);
line : |
|
list : |
|
pZ : |
|
ppdinfo : |
|
state : |
|
opt : |
|
prn : |
|
| Returns : |
|
restrict_sample_from_mask ()
int restrict_sample_from_mask (char *mask,
int mode,
double ***pZ,
DATAINFO **ppdinfo,
ExecState *state);
mask : |
|
mode : |
|
pZ : |
|
ppdinfo : |
|
state : |
|
| Returns : |
|
complex_subsampled ()
int complex_subsampled (void);
get_full_length_n ()
int get_full_length_n (void);
set_sample ()
int set_sample (const char *line,
const double **Z,
DATAINFO *pdinfo);
line : |
|
Z : |
|
pdinfo : |
|
| Returns : |
|
restore_full_sample ()
int restore_full_sample (double ***pZ,
DATAINFO **ppdinfo,
ExecState *state);
pZ : |
|
ppdinfo : |
|
state : |
|
| Returns : |
|
count_missing_values ()
int count_missing_values (double ***pZ,
DATAINFO *pdinfo,
PRN *prn);
pZ : |
|
pdinfo : |
|
prn : |
|
| Returns : |
|
add_dataset_to_model ()
int add_dataset_to_model (MODEL *pmod,
const DATAINFO *pdinfo);
pmod : |
|
pdinfo : |
|
| Returns : |
|
free_model_dataset ()
void free_model_dataset (MODEL *pmod);
maybe_free_full_dataset ()
void maybe_free_full_dataset (const DATAINFO *pdinfo);