msgid "Dependent variable must be numeric."
msgstr ""
+#: src/language/stats/regression.q:1320
+msgid "No valid data found. This command was skipped."
+msgstr ""
+
#: src/language/stats/sort-cases.c:63
msgid "Buffer limit must be at least 2."
msgstr ""
/* One key used for sorting. */
struct sort_key
{
- struct variable *var; /* Variable. */
+ const struct variable *var; /* Variable. */
enum sort_direction dir; /* Sort direction. */
};
bool
case_ordering_add_var (struct case_ordering *co,
- struct variable *var, enum sort_direction dir)
+ const struct variable *var, enum sort_direction dir)
{
struct sort_key *key;
size_t i;
return co->key_cnt;
}
-struct variable *
+const struct variable *
case_ordering_get_var (const struct case_ordering *co, size_t idx)
{
assert (idx < co->key_cnt);
void
case_ordering_get_vars (const struct case_ordering *co,
- struct variable ***vars, size_t *var_cnt)
+ const struct variable ***vars, size_t *var_cnt)
{
size_t i;
const struct case_ordering *);
bool case_ordering_add_var (struct case_ordering *,
- struct variable *, enum sort_direction);
+ const struct variable *, enum sort_direction);
size_t case_ordering_get_var_cnt (const struct case_ordering *);
-struct variable *case_ordering_get_var (const struct case_ordering *, size_t);
+const struct variable *case_ordering_get_var (const struct case_ordering *, size_t);
enum sort_direction case_ordering_get_direction (const struct case_ordering *,
size_t);
void case_ordering_get_vars (const struct case_ordering *,
- struct variable ***, size_t *);
+ const struct variable ***, size_t *);
#endif /* data/case-ordering.h */
struct casegrouper_vars
{
- struct variable **vars;
+ const struct variable **vars;
size_t var_cnt;
};
struct casegrouper *
casegrouper_create_vars (struct casereader *reader,
- struct variable *const *vars,
+ const struct variable *const *vars,
size_t var_cnt)
{
if (var_cnt > 0)
casegrouper_create_case_ordering (struct casereader *reader,
const struct case_ordering *co)
{
- struct variable **vars;
+ const struct variable **vars;
size_t var_cnt;
struct casegrouper *grouper;
void (*destroy) (void *aux),
void *aux);
struct casegrouper *casegrouper_create_vars (struct casereader *,
- struct variable *const *vars,
+ const struct variable *const *vars,
size_t var_cnt);
struct casegrouper *casegrouper_create_splits (struct casereader *,
const struct dictionary *);
struct casereader *
casereader_create_filter_missing (struct casereader *reader,
- struct variable **vars, size_t var_cnt,
+ const struct variable **vars, size_t var_cnt,
enum mv_class class,
struct casewriter *exclude)
{
struct casewriter *exclude);
struct casereader *
casereader_create_filter_missing (struct casereader *,
- struct variable **vars, size_t var_cnt,
+ const struct variable **vars, size_t var_cnt,
enum mv_class,
struct casewriter *exclude);
enum mtf_type type;
int sequence;
- struct variable **by; /* List of BY variables for this file. */
+ const struct variable **by; /* List of BY variables for this file. */
struct mtf_variable *vars; /* Variables to copy to output. */
size_t var_cnt; /* Number of other variables. */
struct ccase buffered_case; /* Case ready for output except that we don't
know the value for the LAST variable yet. */
struct ccase prev_BY_case; /* Case with values of last set of BY vars. */
- struct variable **prev_BY; /* Last set of BY variables. */
+ const struct variable **prev_BY; /* Last set of BY variables. */
};
static void mtf_free (struct mtf_proc *);
pass = casereader_clone (input);
pass = casereader_create_filter_missing (pass,
- (struct variable **) &v, 1,
+ &v, 1,
filter, NULL);
pass = casereader_create_filter_weight (pass, dict, NULL, NULL);
while (casereader_read(pass, &c))
#include <stddef.h>
#include <data/missing-values.h>
-typedef struct variable *variable_pair[2];
+typedef const struct variable *variable_pair[2];
struct hsh_table;
struct const_hsh_table;
struct npar_test **test;
size_t n_tests;
- const struct variable *const* vv; /* Compendium of all variables
+ const struct variable ** vv; /* Compendium of all variables
(those mentioned on ANY subcommand */
int n_vars; /* Number of variables in vv */
test->insert_variables (test, var_hash);
}
- npar_specs.vv = (const struct variable *const *) const_hsh_data (var_hash);
+ npar_specs.vv = (const struct variable **) const_hsh_data (var_hash);
npar_specs.n_vars = const_hsh_count (var_hash);
if ( cmd.sbc_statistics )
input = proc_open (ds);
if ( cmd.miss == NPAR_LISTWISE )
input = casereader_create_filter_missing (input,
- (struct variable **) npar_specs.vv,
+ npar_specs.vv,
npar_specs.n_vars,
npar_specs.filter, NULL);
const struct rank_spec *rs,
int n_rank_specs,
int idx,
- struct variable *rank_var);
+ const struct variable *rank_var);
static const char *
fraction_name(void)
const struct rank_spec *rs,
int n_rank_specs,
int dest_idx,
- struct variable *rank_var)
+ const struct variable *rank_var)
{
struct casereader *pass1, *pass2, *pass2_1;
struct casegrouper *tie_grouper;
/* Identify the explanatory variables in v_variables. Returns
the number of independent variables. */
static int
-identify_indep_vars (struct variable **indep_vars, struct variable *depvar)
+identify_indep_vars (const struct variable **indep_vars, const struct variable *depvar)
{
int n_indep_vars = 0;
int i;
Returns number of valid cases. */
static int
prepare_categories (struct casereader *input,
- struct variable **vars, size_t n_vars,
+ const struct variable **vars, size_t n_vars,
struct moments_var *mom)
{
int n_data;
for (k = 0; k < cmd->n_dependent; k++)
{
- struct variable *dep_var;
+ const struct variable *dep_var;
struct casereader *reader;
casenumber row;
struct ccase c;
{
for (i = 0; i < n_indep; ++i)
{
- struct variable *v = indep_vars[i];
+ const struct variable *v = indep_vars[i];
const union value *val = case_data (&c, v);
if (var_is_alpha (v))
design_matrix_set_categorical (X, row, v, val);
bool *saw_direction)
{
struct case_ordering *ordering = case_ordering_create (dict);
- struct variable **vars = NULL;
+ const struct variable **vars = NULL;
size_t var_cnt = 0;
if (saw_direction != NULL)