Search results

  1. ondansetron

    Rolling 4 dice, probability of a sum=S

    Working on a problem (not homework for me) regarding the probability of a particular sum achieved by rolling n fair 6-sided dice. The specific problem required me to find the probability that four dice are rolled and the sum is 21. I said 6^4 possibilities = denominator. The only possible...
  2. ondansetron

    R programming

    This is a module in the Swirl package that I've had some trouble understanding their explanation, although I'm able to successfully complete the assigned task. I was hoping someone would provide a better explanation of what's going on in the following: # Let's explore how to "unpack" arguments...
  3. ondansetron

    R [ugly] and R [studio]

    Not sure the official name of the ugly bare-bones syntax interface for R, sorry. If I install/update a package in the R[ugly] is it automatically installed/carried into R studio? If not, is there an easy way to make this happen?
  4. ondansetron

    Kappa for nonsquare tables

    I have two raters who could have assigned any of 16 ratings to a subject. There are some categories that were not used, so the resulting table is not square and SAS will not give me the Kappa (Cohen's) for it. I'm having trouble figuring out how to do this quickly and efficiently to get the...
  5. ondansetron

    ERROR: Row or column names must be character

    Resolved
  6. ondansetron

    In search of differences of non-mutually exclusive k categories over g groups

    I conceptualize this problem to be similar to a 2x4 test of independence with a chi squared test statistic, but I recognize the problem is different. Suppose we have 2 groups with 20 participants in each group. The groups are mutually exclusive. For any given participant they have some...
  7. ondansetron

    Two for one: Unique variable values

    I used the search and did not find the answer, and I've been poking in SAS documentation without much luck. problem 1) I would like to tell SAS to randomly select x% of my spreadsheet subject to the constraint that all values for a particular variable are unique. For example, if I have a sheet...
  8. ondansetron

    Summing number of "successes" over multiple related binary variables for a patient

    Hey everyone, I'm trying to find a more efficient way to tell SAS to look at an observation and count the number of "successes" when looking at specific variables and then to create a new variable that is the count of "successes" for this observation. OBS X1 X2 X3 1 1 0 0 2...
  9. ondansetron

    read.csv adds weird character to my first column header

    New one-off question: I am trying to learn importing data with R. I am following Mike Marin's Youtube lectures. I saved his excel sheet as .csv and tried the read.csv command, and everything seems to go well. I am totally new to R, essentially. When I try to view the data, the console shows a...