Skip to content
Snippets Groups Projects
Select Git revision
  • 3730aecadc71980317dd29c3902580f9ab6a506c
  • master default protected
  • phpbased
  • reduce-load
  • dev
5 results

event_display.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    sim_all.Rd 1.98 KiB
    % Generated by roxygen2: do not edit by hand
    % Please edit documentation in R/sim_all.R
    \name{sim_all}
    \alias{sim_all}
    \title{Is a wrapper for sim_choice executing the simulation over all designs stored in a specific folder
    update}
    \usage{
    sim_all(nosim = 2, resps, destype = "ngene", designpath, u, bcoeff)
    }
    \arguments{
    \item{nosim}{Number of runs or simulations. For testing use 2 but once you go serious, use at least 200, for better results use 2000.}
    
    \item{resps}{Number of respondents you want to simulate}
    
    \item{destype}{Is it a design created with ngene or with spdesign. Ngene desings should be stored as the standard .ngd output. spdesign should be the spdesign object design$design}
    
    \item{designpath}{The path to the folder where the designs are stored. For example "c:/myfancydec/Designs"}
    
    \item{u}{A list with utility functions. The list can incorporate as many decision rule groups as you want. However, each group must be in a list in this list. If you just use one group (the normal),  this  group still  has to be in a list in  the u list. As a convention name beta coefficients starting with a lower case "b"}
    
    \item{bcoefficients}{List of initial coefficients for the utility function. List content/length can vary based on application, but should all begin with b and be the same as those entered in the utility functions}
    }
    \value{
    A list, with all information on the simulation. This list an be easily processed by the user and in the rmarkdown template.
    }
    \description{
    Is a wrapper for sim_choice executing the simulation over all designs stored in a specific folder
    update
    }
    \examples{
    
     designpath<- system.file("extdata","Rbook" ,package = "simulateDCE")
     resps =240  # number of respondents
     nosim=2 # number of simulations to run (about 500 is minimum)
    
     bcoeff <-list(bsq=0.00, # hypothesized beta coefficients for individual terms of the utility function
         bredkite=-0.05,
         bdistance=0.50,
         bcost=-0.05,
         bfarm2=0.25,
         bfarm3=0.50,
         bheight2=0.25,
         bheight3=0.50)
    
    }