Hi Matthew,
Remember, keep it on the list so that people know the status of the request.
I couldn't get this to work with the "_source_info_" variable. It
seems to be unreadable as a variable name. So, this _may_ be what you
want. I don't know if it can be done with "merge" and I don't know the
fun
1. This is a plain text list. Do not post in HTML.
2. Read the posting guide. You will enhance your chnce of getting a useful
reply if you do what it says, especially prividing a reproducible example
that shows what you have, what you want, and the code you used, along with
any error messages you
Hi Matthew,
First thing, don't put:
mydf3 <- data.frame(myenter)
inside your loop, otherwise you will reset the value of mydf3 each
time and end up with only "myenter" and the final list. Without some
idea of the contents of comatgs, it is difficult to suggest a way to
get what you want.
Jim
On
On 3/21/19 3:31 PM, reichm...@sbcglobal.net wrote:
r-help
I have the following little scrip to create a df of summary stats. I'm
having problems obtaining the # of unique values
unique=sapply(myData, function (x)
length(unique(x), replace = TRUE))
I just looked up
r-help
I have the following little scrip to create a df of summary stats. I'm
having problems obtaining the # of unique values
unique=sapply(myData, function (x)
length(unique(x), replace = TRUE))
Can I do that, or am I using the wrong R function?
summary.stats <- data
Dear all, I have a problem with the package ‘meta’.
I have 15 studies in a meta-analysis, belonging to two groups (a different
control was used depending on the study).
After the general estimation of the effect of the experimental treatment, I
want to evaluate the effect by type of control. So I u
My apologies, my first e-mail formatted very poorly when sent, so I am
trying again with something I hope will be less confusing.
I have been trying create a dataframe by looping through a list of lists,
and using dplyr's full_join so as to keep common elements on the same row.
But, I have a c
I have been trying create a dataframe by looping through a list of lists,
and using dplyr's full_join so as to keep common elements on the same row.
But, I have a couple of problems.
1) The lists have different numbers of elements.
2) In the final dataframe, I would like the column names to be
If you are looking for robust multivariate or multivariable methods,
then review the Robust Methods Task View:
https://cran.r-project.org/view=Robust
--
David.
On 3/13/19 4:06 AM, Jackson, Daniel wrote:
Hi Frank and Dennis
I am in a similar situation but I would prefer to use a proportion
> Hi,
>
> I’ve managed to sort out the problem. Yes you are correct, one of the coding
> method is using reshape2
>
> The coding is as below:
>
>> library(tidyr)
>> comdrug2 <- gather(comdrug, key = DrugType, value = Reduction, DrugX, DrugY)
>> head(comdrug2)
> ID DrugType Reduction
> 1 1
dear Ivan,
I've not gone into residual analysis; but my observation is
simple: I've checked the hist of both HF5 and HF6. There is not much
difference. Also I've replaced all outliers.
HF1 ~ (m/HF5 )+ 1 is getting fitted properly, but not HF1 ~ (m/HF6) + 1.
I'm glad you figured it out.
You do still need to reply to the R-help list, not me, but because you
did reply just to me I discovered that your orignal question had an
image in it of your desired result, which was stripped by the
pliant-text R-help server.
So your original email ended with:
"Is
One of the assumptions made by least squares method is that the
residuals are independent and normally distributed with same parameters
(or, in case of weighted regression, the standard deviation of the
residual is known for every point). If this is the case, the parameters
that minimize the sum of
Please also copy the R-help email list when you reply.
On Thu, Mar 21, 2019 at 10:05 AM Anaanthan Pillai
wrote:
>
> The hypothetical data is about drug x and drug y both we assume as diabetic
> drug which can reduce hbaic level (sugar level)
>
> Currently I have a data frame of 3X50, whereby the
> Rolf Turner
> on Wed, 13 Mar 2019 09:38:24 +1300 writes:
> On 13/03/19 9:06 AM, Greg Snow wrote:
>
>> The only time I have seen t.test give a p-value of 1 is when the
>> data mean exactly equals the null hypothesis mean and the alternative
>> is the default of
Hi
You shouldn't use HTML formating unless you want to surprise us with weird and
messy email.
function dcast is in data.table and/or in reshape2 packages. For both
install.packages("data.table")
install.packages("reshape2")
followed by
library(data.table)
library(reshape2)
should be enough t
Hi,
dcast() is a function, not a package, so R can't find it in the package archive.
You need to install the package that contains it. Probably you want reshape2
install.packages("reshape2")
Sarah
On Thu, Mar 21, 2019 at 9:54 AM Marie-joe Kfoury
wrote:
>
> Hi,
>
>
> I am having a problem with
I'm sorry, I don't understand what you're trying to do with your
hypothetical data.
Can you expand on what your question is?
Sarah
On Thu, Mar 21, 2019 at 9:54 AM Anaanthan Pillai
wrote:
>
> Good day,
>
> #I’ve created hypothetical data for drug X and drug Y whereby both drug have
> the abilit
Dear Jim Lemon:
First of all, very sorry for such a long delay in replying to your e-mail.
I am quite surprised that you did not receive the .csv and .R files attachment
with my previous e-mail. I am re-sending those files. However, by any chance,
you do not receive them even this time, I must s
I know this is several years later but...
I ran into the same issue and was able to solve it by verifying the spacing
between variables within original text file. For example, Item1, Item2, and
Item3 had a single space between them while the numbers in each item had 5
spaces between them, resul
Good day,
#I’ve created hypothetical data for drug X and drug Y whereby both drug have
the ability to have HbA1c reduction.
set.seed(10)
drugx= rnorm(50, mean = 0.1, sd=0.02)
set.seed(11)
drugy= rnorm(50, mean=0.15, sd=0.03)
#And created a data frame, compare drugs (comdrug) of 50 patients for
Hi,
I am having a problem with installing the dcast function in R 3.5.3
Here is the message that I am getting when trying to install it:
> install.packages("dcast")
Installing package into �C:/Users/marie/Documents/R/win-library/3.5�
(as �lib� is unspecified)
Warning message:
package �dcast� is
22 matches
Mail list logo