sd.start: Read, Clean, And Threshold Data To Call PRIM

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/sd.start.r

Description

This function is designed to help make sure that data used in PRIM analysis is in an appropriate form. It checks for duplicate columns and columns with no changing values, and also for various forms of missing or non-real-valued data. It then displays histograms and empirical cdfs for candidate output variables, and lets you define thresholds, and then call sdprim.

Usage

1

Arguments

...

The function is interactive and prompts for inputs. However, you may prespecify arguments to pass on to sdprim when it is called. See that function's help file for much more detailed information.

Details

The current version of sdprim has some notable restrictions on the format of data it can accept while still functioning appropriately. In particular, the data must be numeric, and the output vector that is eventually used must be zero one. This function (sd.start) helps to make sure the input and output data is appropriately formatted prior to calling sdprim.

Value

If one chooses to call sdprim from within sd.start, then it will return the same output of sdprim. Specifically, a convoluted list containing all relevant box sequence information, with structure as described more precisely in the help file for sdprim.

If sdprim is not called, then nothing is returned (or possibly some junk), though you may save data files interactively from within sd.start.

Author(s)

Benjamin P. Bryant, bryant@prgs.edu

References

Lempert, R.J., B.P. Bryant and S.C. Bankes. (2008). “Comparing Algorithms for Scenario Discovery.” RAND Working Paper Series. http://www.rand.org/pub/working\_papers/2008/RAND\_WR557.pdf

Friedman, J.H., N.I. Fisher. (1999). “Bump hunting in high-dimensional data.” Statistics and Computing 9, 123-143.

Groves, D.G. and R.J. Lempert. (2007). “A New Analytic Method for Finding Policy-Relevant Scenarios”. Global Environmental Change, 17, p73-85. http://www.rand.org/pubs/reprints/RP1244/

Lempert, R.J., D.G. Groves, et al. (2006). “A general, analytic method for generating robust strategies and narrative scenarios.” Management Science 52(4): 514-528.

See Also

sdprim

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#Note, because the function is interactive, this example demonstrates very 
#little.  You will need a csv or rda file available to load data in.
#See the sdprim examples for more explicit use.
 
## Not run: myboxes <- sd.start() 
#Uses all of sdprim's default arguments

## Not run: morebox <- sd.start(repro=FALSE) 
#tells sdprim not to spend computatioal time on 
#reproducibility statistics

sdtoolkit documentation built on May 2, 2019, 6:04 a.m.