Hello,
Semi-new r user here and still learning the ropes. I am creating dummy
variables for a dataset on stock prices in r. One dummy variable is
called prev1 and is:
prev1 <- ifelse(ret1 >= .5, 1, 0)
where ret1 is the previous day's return.
The variable "prev1" is created fine and works in my
Hello,
I am a new user of R. I am coming from SAS and do statistics on stock
market data, economic data, and social data. My question is this: How
can you get the mean, standard dev, etc. of a variable based on a
conditional statement on either the same variable or a different
variable in the same
2 matches
Mail list logo