similar to: help calculating variable based on factor level of another

Displaying 20 results from an estimated 2000 matches similar to: "help calculating variable based on factor level of another"

2010 Jul 19
2
Grouping and stacking bar plot for categorical variables
Hi all, I have a series of cateogiral variables that look just like this: welfare=sample(c("less", "same", "more"), 1000, replace=TRUE) education=sample(c("less", "same", "more"), 1000, replace=TRUE) defence=sample(c("less", "same", "more"), 1000, replace=TRUE) egp=sample(c("salariat",
2010 Apr 14
3
Problem with recode -Error in parse(text = range[[1]][1]) : unexpected end of input in " c(0"
Dear colleagues, in the help archive there was a previous person who encountered a problem with the "recode" command in the car library. I'm not sure if that was solved, there was no posting to that effect, but I'm having the same problem. I'm trying to recode a numeric variable with values from 0-100 into a binary variable with values (0,1). The following command:
2010 Jun 29
3
generate irregular series of dates
Dear colleagues, particularly academic ones, So I'm creating a Microsoft Word template for myself so that every time I teach a new course, I don't have to enter in the dates manually for each class session. I'd like to use an R script that can generate an irregular series of dates starting from one date (semester begin) to another (semester end) using an irregular interval in
2010 May 12
2
Finding different hues for a mosaic plot compatible with grayscale printing
I'm working with the following code below to generate a how do I set the h,c, and l values such that the significant, positive residuals appear different on a grayscale printer from significant grayscale residuals. The challenge as I see it is that one can only distinguish the positive and negative residuals with the hue/. Varying the chroma and the luminance only affect the
2010 Jun 03
2
Comparing a 4-point and 5-point Likert scale
Help with survey data: Hello R colleagues, I hope this is an appropriate place to direct this question. It relates specifically to the comparability of a 5-point likert to a 4- point likert scale. One question in my dataset asks "How much should be done to reduce the gap between rich and poor" Much more, somewhat more, about the same, somewhat less and much less. The second
2010 Jun 28
2
Stacked Histogram, multiple lines for dates of news stories?
Dear colleagues, I have extracted the dates of several news stories from a newspaper data base to chart coverage trends of an issue over time. They are in a data frame that looks just like one generated by the reproducible code below. I can already generate a histogram of the dates with various intervals (months, quarters, weeks years) using hist.Date. However, there are two other
2010 Mar 24
1
R Full Screen
Hello all, I'm new user with R and just completed a five day course on the program. Somehow, a few basic questions remain unanswered. I'm working on a Mac Os X system and have my laptop connected to a large, flat- screen monitor. I can't make any of the Quartz windows fill the monitor's screen; I'd like to make them full screen to identify points in a dense
2010 Mar 26
0
row names in regression results and saving the identification results from added variable plots
Hello all, Is there a way to take the row names from my data.frame and have them imported to the regression results? At the moment, I my original data frame looks like this: / Riding name / Turnout / Margin / Expenditures 1 / Abbotsford 2 / . 3 / . 4 / .Willow I know how to set the row names for the original data frame to be the Riding name, but when I run the regression, the residuals,
2010 Apr 27
0
NULL variable read in from SPS
Hello all, I'm having difficulty getting one particular variable into R from SPSS v. 16.0 for mac. R version is 2.10.1. I saved the relevant variables from SPSS into a .csv file and then read them into R. All the variables worked fine, except for one (enviro_spending). In the SPSS file it is correctly coded as a nominal variable and there is nothing that I can tell that
2010 May 20
0
Compressed values on y-axis in effects plot
Dear colleagues, the code below generated the two effects plots that I have attached. I hope they are not stripped. The original two models are as follows: green_shift_mod=glm(green_shift ~ educ+party_id+educ:party_id, family=binomial, data=x) carbon_tax_mod=glm(carbon_tax ~ educ+party_id+educ:party_id, family=binomial, data=x) Then, I try to plot the effects of party_id by education for
2016 Aug 02
6
OpenSSH 7.3p1 can't be build on Solaris 10
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 With this change built ok. But patch must be quite different on my platform (see attached) for portable version. And, of course, after autoreconf run. 02.08.2016 10:55, Darren Tucker ?????: > --- a/configure.ac > +++ b/configure.ac > @@ -754,6 +754,9 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
2005 Feb 07
1
treat output of sshrc as environment assignment lines?
Currently, ~/.ssh/environment can set static environment variables, and ~/.ssh/rc can run initialization routines. But there is no way for sshrc to propagate changes to the environment to the user's shell or command. There is, however, a possible way to do this. If the PermitUserEnvironment option is set, sshd could treat the stdout of sshrc as additional assignment lines of the form
2020 Sep 18
2
Aborting an ssh connection on sshrc execution failure
Hi! It feels like there is an obvious answer to this that I'm not seeing, but I've been testing, reading manuals and googling for a while now and can't seem to get it to work. I have an SSH server that mounts a windows share on login, to act as a SFTP proxy for windows home directories. The mounting of the users' homedirs is done via a call from /etc/ssh/sshrc. This mount
2009 Jun 11
3
deSolve question
Dear All, I like to simulate a physiologically based pharmacokinetics model using R but am having a problem with the daspk routine. The same problem has been implemented in Berkeley madonna and Winbugs so that I know that it is working. However, with daspk it is not, and the numbers are everywhere! Please see the following and let me know if I am missing something... Thanks a lot in advance,
2005 Dec 24
8
Prototype OOP example
Hi, Here is what I want to do: Labour = Class.create(); Labour.prototype = { initialize:function(name){ this.name = name; } } What I want to do is create a class called "Worker" which will inherit from "Labour", and the signature of "initialize" is "function(name, position)". May I ask what should do? Thank you all very much for the
2013 Apr 09
1
sorting the VAR model output according to variable names??
I was wondering if one can have the coefficients of VAR model sorted according to variable names rather than lags. If you notice below, the output is sorted according to lags. >VAR(cbind(fossil,labour),p=2,type="const") VAR Estimation Results: ======================= Estimated coefficients for equation fossil: =========================================== Call: fossil = fossil.l1
2018 Jan 08
3
SFTP chroot: Writable root
On Sun, 2018-01-07 at 18:41 +0000, halfdog wrote: > Hello list, > > I created a page to demonstrate, what would happen when chroot > root directory is writeable. In fact, code execution is possible > already, when only /etc and /bin are writable. I also tried to > escape the chroot jail, but that did not work for non-root users. > > As the 2009 CVE activities mention,
2015 Oct 13
5
RFC: Introducing an LLVM Community Code of Conduct
On Tue, Oct 13, 2015 at 12:35:07PM -0400, Aaron Ballman via llvm-dev wrote: > On Tue, Oct 13, 2015 at 12:21 PM, Renato Golin via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > On 13 October 2015 at 16:41, Rafael EspĂ­ndola <llvm-dev at lists.llvm.org> wrote: > >>> - *Be welcoming.* We strive to be a community that welcomes and supports > >>>
2011 Sep 16
2
weird make errors on portable snapshots
When doing a make with the portable developer version, I came across this error: ssh/ssh_host_ecdsa_key|/opt/etc/ssh_host_ecdsa_key|g' -e 's|/etc/ssh/ssh_host_dsa_key|/opt/etc/ssh_host_dsa_key|g' -e 's|/etc/ssh/ssh_host_rsa_key|/opt/etc/ssh_host_rsa_key|g' -e 's|/var/run/sshd.pid|/var/run/sshd.pid|g' -e 's|/etc/moduli|/opt/etc/moduli|g' -e
1997 Feb 22
2
ssh and limits on resources
While logging in via ssh (versions 1.2.17 and 1.2.12) under Linux 2.0, I found that limits weren''t being set (as shown by the output of "limit" (tcsh) or "ulimit -a" (bash). Since /etc/profile, /etc/csh.cshrc, and /etc/limits were ignored, I made /etc/sshrc and put "ulimit" statements in it. However, I was unable to limit the number of processes this way,