I wrote the following script in R software in order to converting date format in a prospective cohort data. But, I got an odd error. Could everyone help me?
Code:
for(col in colnames(outcome)){
if(startsWith(col, "eventdate_")){
outcome[, col]
I don't think anyone will be able to help you without a reproducible example. For example, the following works.
#####
Location = rep(c("Home", "Away"), 5)
eventdate_alpha = c(rep("2017-05-06", 5), rep("2015-07-18", 5))
outcome = data.frame(Location, eventdate_alpha)
I have a number of items that I need converting from grams per day to serving per day. Indeed, how much is a serving per day potato as grams per day?
05 June 2016 3,106 8 View
Does it make sense to enter date (min:second) as dependent variable in multiple linear regression model? If yes, how can interpret its regressions coefficient?
03 April 2016 2,107 4 View
Is there any specific software (except R, SAS and Stata) for drawing of a multi predictors nomogram? Such as comprehensive meta-analysis (CMA) software for meta-analysis studies.
31 December 2014 887 1 View
Hello experts, Does anyone know any free software about retention index prediction ?
08 August 2024 7,403 2 View
Hi, I have a question about normalizing the MTT OD values for doing the statistical analysis. So, if we have 3 different plates and we call them 3 different replicates, so, first we would...
07 August 2024 8,106 4 View
Are there any statistical methods to justify your sampling technique using SPSS or AMOS?
05 August 2024 9,153 4 View
Hi everyone, If you have written or come across any papers where Generalised Linear Mixed Models are used to examine intervention (e.g., in mental health) efficacy, could you please share the...
04 August 2024 4,130 4 View
Molecular docking software/ websites?
02 August 2024 8,704 7 View
Just bounced on me. Before statistically analysing significant difference, shouldn't we see if data fits normal distribution first? Is 3 replicates enough to testify the hypothesis of normal...
31 July 2024 8,141 13 View
Does anyone know of a module for the JAMOVI software that is capable of generating mean separations using the classic letters based on post hoc results (e.g., Tukey test)? If, as I believe, such...
31 July 2024 3,333 4 View
N=6 Comparing pre and post test likert scale responses. Participants are mix of practicing & preservice teachers.
30 July 2024 7,233 4 View
I created a file with my outgroup and ingroup species using Beauti, ran it in BEAST, viewed it in Tracer, and then used TreeAnnotator to create a file that I imported into RASP. Could someone...
28 July 2024 2,979 1 View
all math can be traversed by code? all math can be translate to code?
26 July 2024 9,530 0 View