Re: [R] Converting anova/ancova summary to data frame

2011-09-01 Thread Shane Phillips
Perfect! Thank you! S -Original Message- From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Sent: Wednesday, August 31, 2011 4:44 PM To: Shane Phillips Cc: r-help@r-project.org Subject: Re: [R] Converting anova/ancova summary to data frame On 31.08.2011 22:33, Shane Phillips

[R] Converting anova/ancova summary to data frame

2011-08-31 Thread Shane Phillips
Hi! Can anyone tell me how to convert the anova/ancova summary output into a data frame? Thanks! Shane Phillips [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] Retaining MatchIt output as a dataset

2011-06-01 Thread Shane Phillips
Hi! I am running a simulation testing group balance using different propensity score matching techniques. I am using the MatchIt package to match and analyze the data. Since I am running this analysis many, many times with different simulated data sets, I need to make the output from the

[R] Simulation Questions

2011-04-30 Thread Shane Phillips
I have the following script for generating a dataset. It works like a champ except for a couple of things. 1. I need the variables itbs and map to be negatively correlated with the binomial variable lunch (around -0.21 and -0.24, respectively). The binomial variable lunch needs to remain

[R] Random Normal Variable Correlated to an Existing Binomial Variable

2011-04-24 Thread Shane Phillips
Hi, R-Helpers! I have a dataframe that contains a binomial variable. I need to add another random variable drawn from a normal distribution with a specific mean and standard deviation. This variable also needs to be correlated with the existing binomial variable with a specific correlation

[R] Monte Carlo Simulation

2011-04-15 Thread Shane Phillips
Hello, R friends... I am very new to R, and I need some help. I am trying to construct a simulation for my dissertation. I need to create 1000 datasets of 1000 subjects with the following variables... Treatment variable - Drawn from a binomial distribution (1 run, prob=.13) Covariate 1 -

Re: [R] Monte Carlo Simulation

2011-04-15 Thread Shane Phillips
...@statisticalengineering.com] Sent: Friday, April 15, 2011 3:01 PM To: Shane Phillips; r-help@r-project.org Subject: RE: [R] Monte Carlo Simulation What have you tried so far? It is often helpful to begin with a much simpler problem, then add complexity incrementally until you've constructed the desired

Re: [R] Monte Carlo Simulation

2011-04-15 Thread Shane Phillips
who have helped so far! You are all so smart! S From: Charles Annis, P.E. [charles.an...@statisticalengineering.com] Sent: Friday, April 15, 2011 3:00 PM To: Shane Phillips; r-help@r-project.org Subject: RE: [R] Monte Carlo Simulation What have you tried

[R] Converting a categorical variable to multiple dichotemous variables

2011-04-12 Thread Shane Phillips
I have a categorical variable in a dataframe similar to the following... cat 1 1 3 2 4 I need to convert it to 4 dichotemous variables for each observations like... cat1cat2cat3cat4 1 0 0 0 1 0 0 0 0 0 1 0 0 1 0

Re: [R] Converting a categorical variable to multiple dichotemousvariables

2011-04-12 Thread Shane Phillips
it to this program. Sorry! I'm really new to this. Thanks for your help! Shane -Original Message- From: Dr. Pablo E. Verde [mailto:pabloemilio.ve...@uni-duesseldorf.de] Sent: Tuesday, April 12, 2011 8:53 AM To: andrija djurovic; Shane Phillips Cc: r-help@r-project.org Subject: Re: [R] Converting

[R] Help on calculating a variable using random numbers

2011-04-11 Thread Shane Phillips
I'm new to R, but I'm trying to write a program for a dissertation that generates a dataset as follows... subject=1:1000 treat=rbinom(1*1000,1,.13) gender=rbinom(1*1000,1,.5) eth=runif(1*1000, min=1, max=4) cogat=rnorm(1*1000, 100, 16) map=rnorm(1*1000, 200, 9) simtest=data.frame