Hello, Derek,
first of all, be very aware of what David Winsemius said; you are about to
enter the area of "unprincipled data-mining" (as he called it) with its
trap -- one of many -- of multiple testing. So, *if* you know what the
consequences and possible remedies are, a purely R-syntactic "
On May 5, 2011, at 1:45 PM, dereksloan wrote:
Thanks a lot,
I understand what you say but I'm having problems - maybe with the
syntax or
the specific command.
You are right - I have a dataframe to store the data and want to
automate
the analysis.
i.e. I want do a chisq.test with to kno
Thanks a lot,
I understand what you say but I'm having problems - maybe with the syntax or
the specific command.
You are right - I have a dataframe to store the data and want to automate
the analysis.
i.e. I want do a chisq.test with to know if alcohol intake (Y/N) differs
between sexes, then if
On May 5, 2011, at 1:08 PM, dereksloan wrote:
Thanks David,
I did notice that and I got his code to work using wilcox.test for the
continuous variables.
The problem is that when I tried to alter the code to do chisq.test
on my
categorical variables there is something wrong with the syntax a
Thanks David,
I did notice that and I got his code to work using wilcox.test for the
continuous variables.
The problem is that when I tried to alter the code to do chisq.test on my
categorical variables there is something wrong with the syntax and I don't
know what.
Derek
--
View this message i
On May 5, 2011, at 10:01 AM, dereksloan wrote:
Your code may be untested but it works - also helping me slowly to
start
understanding how to write functions. Thank you.
However I still have difficulty. I also have some categorical
variables to
analyse by age & hiv status - i.e. my dataset
Hi Derek,
You can accomplish your loop jobs by following means:
(a) use for loop
(b) use while loop
(c) use lapply, tapply, or sapply. (i feel "lapply is the elegant
way )
---For Loop-
"for" loops are pretty simple to use and is almost similar to any
other
Your code may be untested but it works - also helping me slowly to start
understanding how to write functions. Thank you.
However I still have difficulty. I also have some categorical variables to
analyse by age & hiv status - i.e. my dataset expands to (for example);
id sex hiv age
Hello, Derek,
see below.
On Thu, 5 May 2011, dereksloan wrote:
I still need to do some repetitive statistical analysis on some outcomes
from a dataset.
Take the following as an example;
id sex hiv age famsize bmi resprate
1 M Pos 23 2
9 matches
Mail list logo