similar to: help with reshaping wide to long format

Displaying 20 results from an estimated 100 matches similar to: "help with reshaping wide to long format"

2013 Jan 06
4
random effects model
Hi A.K Regarding my question on comparing normal/ obese/overweight with blood pressure change, I did finally as per the first suggestion of stacking the data and creating a normal category . This only gives me a obese not obese 14, but when I did with the wide format hoping to get a obese14,normal14,overweight 14 Vs hibp 21, i could not complete any of the models. This time I classified obese=1
2015 Aug 02
3
ayuda con análisis de supervivencia
Hola a todos, -Estoy estudiando el efecto de dos genotipos (~tratamientos) en la aparición de síndrome metabólico (MetS) con datos longitudinales recogidos a tiempo 0,7,10,15,20 y 25 años. -He hecho un dataframe con las siguientes variables MetS: Síndrome Metabólico (Si=1,No=0) bmi: Indice de masa corporal (IMC) cuando se produce la conversión a MetS+ . Para los que permancen MetS-, esta variable
2010 May 26
3
Simple whole volume copy
I have a volume at 192.168.0.2 on my local network. I'd like to rsync the entire volume to a backup volume, skip all files already present on the backup volume (same name and the same or earlier timestamp), and include all flags, dates, etc. as applicable to Mac OS X 10.6.x. Can someone tell me the proper command to do this.
2010 Jan 25
9
skinny Controllers, fat models with REST?
Hi, I''m really new to rails, so i programmed some stuff and today i read some things about skinny Controllers, fat models. My Controllers are really fat now. So i''m asking myself how can i shrink my controllers and move the code to the models, especially in fact of REST e.g. in focus on error codes? code example: # POST /tasks # POST /tasks.xml def create @authorized
2010 Mar 25
3
Returning Data Frame from Function for use Outside Function
I have a function (see below) that does some bootstrapping (I am happy to expand offline why I could use existing functions.) I put my results into and empty matrix and add a row of results with each iteration. My problem is i am a new user to R and I don't understand data frames, matrices, elements, and vectors well. What I would like is to have a data frame I can manipulate outside of the
2009 Nov 14
4
Weighted descriptives by levels of another variables
I've noticed that R has a number of very useful functions for obtaining descriptive statistics on groups of variables, including summary {stats}, describe {Hmisc}, and describe {psych}, but none that I have found is able to provided weighted descriptives of subsets of a data set (ex. descriptives for both males and females for age, where accurate results require use of sampling
2005 Sep 07
1
fitting distribution tails
Hello, I want to fit a distribution to a dataset. Important is not the "overall" fitting but the fitting in the tail (e.g. all observations > x or the n highest values). Standard ML-estimation sometimes doesn't work here very well. We see that especially when we have truncated datasets the algorithms won't converge. In the case of lognormal distribution: It seems that the
2005 Sep 01
1
More block diagonal matrix construction code
Folks: In answer to a query, Andy Liaw recently submitted some code to construct a block diagonal matrix. For what seemed a fairly straightforward task, the code seemed a little "overweight" to me (that's an American stock analyst's term, btw), so I came up with a slightly cleaner version (with help from Andy): bdiag<-function(...){ mlist<-list(...) ## handle case in
2014 Feb 10
2
Lots of calls, less memory
We're running Asterisk 1.8 on a 32-bit Debian machine, and it has been fine for some time now. But! We've got such a incoming call volume over the few weeks that we'll have Asterisk occasionally restart itself. My hunch is that it is in part memory pressure. I can't add RAM and have it help, because it's 32-bit. I intend to move to a 64-bit machine, but I was hoping to
2009 Dec 02
3
CentOS 5.3 - changing display settings
I've just installed CentOS 5.3 on my desktop and need to change the installed display setting from 1280x1024 to 1024x768 (more suitable for my monitor). When I try this on the Display Settings tab, I get the message: "Display settings changed You need to log out and restart the X server for the changes to take effect. Configuration was written to /etc/X11/xorg.conf, original
2011 May 31
2
Latin Hypercube Sampling with a condition
Hello all, I am trying to do a Latin Hypercube Sampling (LHS) to a 5-parameter design matrix. I start as follows: library(lhs) p1<-randomLHS(1000, 5) If I check the distribution of each parameter (column), they are perfectly uniformly distributed (as expected).For example, hist(p1[,1]) Now the hard (maybe strange) question. I want the combination of the first three parameters to sum up to
2019 Nov 07
8
Enable Contributions Through Pull-request For LLVM
On Thu, Nov 7, 2019 at 3:09 AM Roman Lebedev via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Strong -1 personally. Likewise, for many of the same reasons detailed below. ~Aaron > * What is the endgoal? To fully kill phab and move to github pullrequests? > it might be best to discuss *that* first. (did i miss an RFC?) > * Separation of attention - does everyone who
1999 Jun 29
3
Anyone successfully using a HP 8000 DN (with JetDirect module and IP) with samba?
Anyone successfully using a HP 8000 DN or HP 5 Lsi (with JetDirect module and assigned IP) with samba? Subject says it all. If you're successfully doing this, what configs made it work? FAQs tell how to set up with a print server, but what if the printer itself is the server? Trust me, the HP doesn't know jack about port 139. Using samba 2.0.4 on Solaris 7 and NT 4.0 SP5 with
2010 Jul 03
2
logistic regression - glm() - example in Dalgaard's book ISwR
Dear R-list members, I would like to pose a question about the use and results of the glm() function for logistic regression calculations. The question is based on an example provided on p. 229 in P. Dalgaard, Introductory Statistics with R, 2nd. edition, Springer, 2008. By means of this example, I was trying to practice the different ways of entering data in glm(). In his book, Dalgaard
2019 Nov 07
2
Enable Contributions Through Pull-request For LLVM
-1 from me as well. GitHub UI feels extremely sluggish with large projects, forks feel like needless hurdles to jump over, especially for small patches - having to fork the entire monorepo, just to do a GitHub PR would be extremely cumbersome. Just recently I submitted a very tiny PR for PcapPlusPlus on GitHub which involved: 1). Forking the repository 2). Cloning the fork 3). Applying the patch
2008 Feb 09
1
bad variable names when printing a data frame containing a matrix (PR#10730)
library(glmpath) data(heart.data) # heart.data is a list, $y a vector, $x a matrix data <- data.frame(x=I(heart.data$x), y = heart.data$y) > data[1:2,] x.1 x.2 x.3 x.4 x.5 x.6 x.7 x.8 x.9 y 1 160 12 5.73 23.11 1 49 25.3 97.2 52 1 2 144 0.01 4.41 28.61 0 55 28.87 2.06 63 1 > dimnames(heart.data$x)[[2]] [1] "sbp"
2019 Sep 24
7
[centos/centos.org] branch master updated (2459e4e -> 6c8ca10)
This is an automated email from the git hooks/post-receive script. unknown user pushed a change to branch master in repository centos/centos.org. from 2459e4e Correct download links for ISO images for 7.7.1810 release new 0ce3254 Updating who/what/where/why for the world of two CentOS distros. - Quick blurb about each distro begins answering questions about the new distro - Release
2008 Feb 29
1
Scruffy Stacked Bar Chart
Hi- Trying to do a stacked bar chart, but nothing is rendering when I add more then 1 bar: This works: graph = Scruffy::Graph.new(:title => "My Chart") graph.add :stacked do |stack| stack.add(:bar, ''Stack1'', [10,10]) end This doesn''t: graph = Scruffy::Graph.new(:title => "My Chart") graph.add :stacked
2013 Feb 01
2
Help calculating p-values
I am trying to figure out how to calculate p-values for the difference in prevalence of a risk factor between men and women. For example, I find that 277 out of 710 male patients and 125 out of 305 female patients have obesity, what is the p-value for their difference? If there is a package that can calculate this in bulk, I would appreciate to learn about it! Thank you [[alternative HTML
2019 Nov 07
3
Enable Contributions Through Pull-request For LLVM
I think that it's really important that we try to strike some balance here. Based on my experience, this thread, and offline conversations, two things seem clear to me: 1. Overall, Phabricator is a superior tool for managing code reviews and some related processes (although GitHub's tools certainly have some benefits, and both are getting better over time). 2. Not accepting GitHub PRs