Changelog
Source:NEWS.md
g6tr.list 0.1.5
- Absolute delta cells in within sheet are now highlighted also when the delta is lower than the negative value of threshold.
g6tr.list 0.1.4
- Updated functions to calculate predictions for new data using old model, based solely on demographic variables.
g6tr.list 0.1.3
- Fixed bug to properly apply color coding on sheet. Updated
get_[within/between]_address().
g6tr.list 0.1.0
- Updated naming conventions:
privatewill always refer to list experiment andpublicwill refer to direct question. - There are now Bayes style tests for list experiments. You can perform them in one shot with
list_statisticsor by passing the result oflist_tidy_resultsto andlist_tests. The results oflist_tidy_result()can be also passed tolist_overall_stats()which returns basic diagnostic statistics and point estimates for the experiment. - The order of columns in
demodata frame passed tolist_assert_data()will be used to determine the order of columns in the output oflist_render_sheets(). - New functions
list_client_output_withinandlist_client_output_betweenreturning the results oflist_model_results()in wide format. - New functions
list_render_sheets()– a wrapper overlist_render_sheets_within()andlist_render_sheets_between()that takes the list of results (fromlist_model_results()), and put them into formattedxlsxfile.
g6tr.list 0.0.16
- Created
list_exp_plot()for plotting list experiment results.
g6tr.list 0.0.15
- Updated
select,renameandassertcalls with currenttidyselectsyntax. -
list_model_results()now automatically returns raw means and predicted probabilities of public and private opinion, by independent variables groups (if at least one of the independent variables is categorical).
g6tr.list 0.0.14
-
list_model_results()now also returns estimated probabilities as well as raw mean of public and private opinion along with the difference between them. - Few updates to tests and mockups for
list_model_results()andlist_predict(). - Updated some
select()calls to followtidyverse > 1.2.0syntax.
g6tr.list 0.0.12
-
list_model_resultsnow correctly displaysNAvalue inlist_pre_post_dfanddirect_pro_post_dfwhen there are no occurrences of particular response level in raw data set. Alsoactual_list_answerinlist_pre_post_dfratios are calculated only using treatment group (filter(group == 1)). Up until version 0.0.11 those proportions were calculated using both treatment and control group, so the ratio of max value for treatment group was biased. - New function to calculate prediction for demographic group levels:
list_single_prediction_groups()that allows to calculate predicted probability of saying yes when asked directly, indirectly or the difference of this two probabilities. - New function
list_predictions_groups()which is a wrapper overlist_single_prediction_groups(). It automatically calculates values for probability of saying yes to direct and indirect question as well as the difference between those probabilities. - New function
list_make_predictors()which is small helper to make list of correct predictor names needed bylist_single_prediction_groups()andlist_prediction_groups()functions.
g6tr.list 0.0.11
- Use
g6tr.dev::check_g6tr_cran_for_new_version()on package startup.
g6tr.list 0.0.10
- The output of
list_model_results()has now restructured easier to follow output.
g6tr.list 0.0.7
- Due to problems with
rstan 26.6.6List Experiment STAN model is no longer precompiled. However, thelist_model()will compile the model before running it only once per session. -
list_model()has two new arguments:seedto choose seed for reproducible workflows andmodelwhich indicates the name of the STAN model to be used.
g6tr.list 0.0.6
- Added new function to make predictions based on new data -
list_predict(). - Adjust
list_summary_statsso it works with output of STAN model. - Add
list_model_resultsthat takes model output and returns summarized results of direct question and list experiment. - Correct call to
model.matrixinlist_tidy_data()so it now makes proper number of columns for each factor variable. - Update
list_assert_data()messages so they are more explicit about correct values for List Experiment and direct question. - Direct question factor levels are no longer automatically converted to integers by
list_assert_data(). This task is now performed bylist_tidy_datadue to addition of new parameters to the tidying function (see below). -
list_tidy_data()has now two additional parameters:-
keep_treat_directwhich indicates if all responses to direct question should be used (default TRUE) or only responses from control group should be used (FALSE); -
unsurewhich indicates ifunsureanswers to direct question should be recoded tono(default “recode”) or dropped (“remove”)
-
g6tr.list 0.0.5
- Add STAN model for list experiment.
- Add
demoargument tolist_assert_data()and internalassert_demo()function that asserts if all the demographic variables do not contain missing values.
g6tr.list 0.0.4
-
list_assert_data() now returns additional element --removed_responses, which is atibble` with removed ids and reasons for removal.
g6tr.list 0.0.3
- New
list_desing_test()is a wrapper overlist::ict.test(). You can check with this function if there are significant design effects. Significant result of the test will indicate that there is a problem with the List Experiment. -
list_assert_data() now returns additional element --removed_responses, which is atibble` with removed ids and reasons for removal.
g6tr.list 0.0.2
- New
list_read_data()reads raw survey data and pre-formats variables needed to run List Experiment model. - New
list_tidy_data()to provide cleanlist_assert_data()output. - New
list_assert_data()takes output oflist_read_data()and check assumptions on data structure (e.g. correct variable types, no missing values, no duplicated respondents ID’s).
g6tr.list 0.0.1
New
list_model()allows to calculate List Experiment model. It returns a list with two models:delta_overallwith general difference between control and treatment (formulale_response ~ 1) anddelta_groupswith differences between breaks levels (formulale_response ~ 1 + break_1 + break_2 + ...).New
list_predict()takes output oflist_model()and data frame with break columns with respective levels and returns adata.framewith calculated fit for each of the levels of each break variable.New
list_summary_stats()takes output oflist_model()and returns a two element list. First element is adata.framewithestimateandsecolumns for treatment and control groups. The second element containsdata.framewithestimate,seandcoefficient(break levels) per treatment and column group*.