Displaying 20 results from an estimated 1100 matches similar to: "calculate differences - strange outcome"
2008 Jul 08
4
Manipulate Data (with regular expressions)
Dear Everyone,
I try to automatically manipulate the data of a variable (class =
factor) like
x
220
220a
221
221b
B221
Into two variables (class = numeric) like
x y
220 0
220 1
221 0
221 1
221 1
y has to carry the information about the class (number or string) of the
former x-Variable.
I could do it by hand like
x[x == "220a"] <- 220
2010 Jul 06
3
Selection with changing number of columns
Dear list,
I'm looking for a way to select rows of a data.frame with changing number of columns (constraint) involved.
Assume a data (d) structure like
Var.1 Var.2 Var.3
9 2 1
2 9 5
1 2 1
I know the number of involved columns.
Is there a way to generate the following selection automatically (maybe for loop), so that it makes no difference if there are two or ten columns involved.
2010 Jul 05
3
Counting defined character within String
Dear list,
I'm looking for a way to count the number of "|" within an object.
The character "|" is used to separated ids.
Assume a data (d) structure like
Var
NA
NA
NA
NA
NA
1
1|2
1|22|45
3
4b|24789
I need to know the maximum number of ids within one object. In this case 3 (1|22|45)
Does anybody know a better way?
Thanks
Mit freundlichen Gr??en
Andreas Kunzler
2008 Sep 11
2
Handling time-series-Data
Dear List,
I ran into some problems with time-series-Data.
Imagine a data-structure where observations (x) of test attendants (i) are made a four times (q) a year (y). The data is orderd the following way:
I y q x
1 2006 1 1
1 2006 3 1
1 2006 4 1
1 2007 1 1
1 2007 2 1
1 2007 3 1
1 2007 4 1
2 2006 1 1
3 2007 1 1
3 2007 2 1
I am looking for a way to count the attendants that at least have
2008 Sep 09
2
exporting tapply objects to csv-files
Dear Everyone,
I try to create a cvs-file with different results form the table function.
Imagine a data-frame with two vectors a and b where b is of the class factor.
I use the tapply function to count a for the different values of b.
tapply(a,b,table)
and I use the table function to have a look of the frequencies as a total
table(a)
I would like to put both results together in one txt or
2008 Jul 22
2
Table orderd by frequencies
Dear List,
I try to order the output of a table by the frequencies of the vector I
am look at.
The object I am looking at is a factor with a lot of levels that were
named only once.
Therefore it would be much easier to order the output by the frequencies
of the levels.
E.g.
> levels(a)
"a" "b" "c" "d"
Preferred outcome:
table(a)
b c a d
10 5 1 1
2006 Jan 12
3
Using an extension to send a linux command
I am a newbie to asterisk and am trying to send a linux command using
extensions in asterisk, for example when I dial 1111 I want to run the linux
command "/usr/local/bin/br -c -n 1" (obviously without the quotes). If I
SSH into my asterisk box and enter that command, it works, however I can't
seem to get it to work from asterisk. I am running Asterisk@home2.2 (I
know, I am a
2008 Jul 16
2
Group level frequencies
Dear List,
I have Multi-level Data
i= Indivitual Level
g= Group Level
var1= First Variable of interest
var2= Second Variable of interest
and I want to count the frequency of "var1" and "var2" on the group
level.
I found a way, but there must be a much simpler way.
data.ml <-
data.frame(i=c(1:8),g=as.factor(c(1,1,1,2,2,3,3,3)),var1=c(3,3,3,4,4,4,4
,4),
1999 Jun 11
1
SMBMOUNT on SGI
I would like to use smbmount on a SGI running IRIX 6.5.1m. The distribution
of samba for IRIX does not include the executables smbmount or smbmnt. Is
there a source for these executables?
Regards,
Fred
--------------------------------------
Fred Kunzler Phone: (281) 575-5090
91-1SE-42C Pager: (800) 618-5062
10200 Bellaire Blvd. Fax: (281) 575-5473
Houston, TX 77072 E-mail:
1999 Jul 19
1
Saving MS Word Documents to a Samba Share from NT
I have installed Samba 2.0.4a on SGIs running IRIX 6.5. My PC is running NT
Workstation SP 3. I have a problem saving documents from MS Word 97 SP 1.
If I create a new document and attempt to save it to a Samba share I get the
following error message: Word cannot complete the save due to a file
permission error. (G:\XX\TEST.DOC). A listing of the directory from Unix
shows the following:
2006 Jan 24
6
iax provider
Hi
I looking a good IAX service for a *emerging * voip provider.
Better with a test account to try.
Thanks in advance.
roberto
--
Ing. Roberto Pereyra
ContenidosOnline
Servidores BSD, Solaris y Linux
Soporte t?cnico ISPs
Jabber ID: rpereyra@lugmen.org.ar
For reliable and professional DNS, use DNS Made Easy!
http://www.dnsmadeeasy.com/u/14989
-------------- next part
2011 Aug 22
2
Duplicate Rows in xts
I read enourmous comment about this questions stating that it was answered before.?
I?have been looking for the answer for a week without luck !!!?
I searched the archives the xts. vignitte , googled for an answer but couldn't find one so her it is:
?
the Vignette states that xts "doesn't inforce the duplicate row requirement" but yet when I try to bring in tick stock data from
2019 Dec 11
3
Friedman
Estimados
Este es el test de friedman que se logra asi
library(PMCMR)
y <- matrix(c( 3.88, 5.64, 5.76, 4.25, 5.91, 4.33, 30.58, 30.14, 16.92,
23.19, 26.74, 10.91, 25.24, 33.52, 25.45, 18.85, 20.45,
26.67, 4.44, 7.94, 4.04, 4.4, 4.23, 4.36, 29.41, 30.72,
32.92, 28.23, 23.35, 12, 38.87, 33.12, 39.15, 28.06, 38.23,
26.65),nrow=6, ncol=6,
dimnames=list(1:6,LETTERS[1:6]))
print(y)
2011 Jun 28
0
Weighted Least Square Model for a Binary Outcome
Dear R Users,
I would like to use R to fit a Weighted Least Square model for a
binary outcome, say Y. The model is the one widely used for a binary
dependent variable when the logistic model has not been proposed.
Does anyone know how to specify the weight as the square root of
1/(E(Y)(1-E(Y)) in lm() or any other regression functions?
I know that varPower() in the package of gls() can provide
2003 May 11
1
NLME - multilevel model using binary outcome - logistic regression
Hi!
I'm pretty raw when working with the R models (linear or not).
I'm wondering has anybody worked with the NLME library and dichotomous
outcomes.
I have a binary outcome variable that I woul like to model in a nested
(multilevel) model.
I started to fit a logistic model to a NLS function, but could not suceed. I
know there are better ways to do it in R with either the LRM or GLM wih
2010 Jan 03
1
Interpreting coefficient in selection and outcome Heckman models in sampleSelection
Hi there
Within sampleSelection, I'm trying to calculate the marginal effects for
variables that are present in both the selection and outcome models.
For example, age might have a positive effect on probability of selection,
but then a negative effect on the outcome variable. i.e.
Model<-selection(participation~age, frequency~age, ...)
Documentation elsewhere describes one method for
2002 Oct 11
1
Odd outcome of attr with environments (PR#2148)
Hi everyone,
I think the following error is slightly odd:
> fred <- new.env()
> happy <- function() fred
> happy()
<environment: 0x8a425b8>
> attr(happy(), "foo") <- 1:10
Error: invalid (NULL) left side of assignment
But naturally this works
> attr(fred, "foo") <- 1:10
> fred
<environment: 0x8a425b8>
attr(,"foo")
[1] 1
2008 Mar 11
0
"Longitudinal" with binary covariates and outcome
Hi Folks,
I'd be grateful for suggestions about approaching the
following kind of data. I'm not sure what general class of
models it is best situated in (that's just my ignorance),
and in particular if anyone could point me to case studies
associated with an R approach that would be most useful.
Suppose I have data of the following kind. Each "subject"
is observed at say 4
2012 Apr 04
1
meta-analysis, outcome = OR associated with a continuous independent variable
Hello everyone,
I want to do a meta-analysis of case-control studies on which an OR was
computed based on a continuous exposure. I have found several several
packages (metafor, rmeta, meta) but unless I misunderstood their main
functions, it seems to me that they focus on two-group comparisons (binary
independent variable), and do not have the option of using a continuous
independent variable.
2004 Dec 20
1
outcome of big rsync. Puzzling
Hi,
I just completed a really big rsync described earlier. Ie about 13,945
directories transfered about 600GB of data.
Of 13,945 directories, 13,9441 directories transfer with matching du -b sizes
of the preimage to the size of the destination machine image.
of the 4 remaining directories i found
source vs destination in bytes
---------
a) 20480 vs 34922496
b) 28672 vs