Displaying 20 results from an estimated 500 matches similar to: "Data transformation for chi-square test."
2012 Oct 17
3
subtotals based on price bands?
I would like to create a subtotal table with custom bands.
seq1 = seq(0, 100, by = 5)
seq2 = seq(100, 1000, by = 100)
Bands = c(seq1, seq2)
#Prices
Prices = sample(1:1000, 200, replace=F)
#corresponding size for the given price above.
size = sample(1:1000, 200, replace=F)
How would I find the subtotal of the size based on a given price falls
within a band?
--
View this message in
2017 Jun 04
2
New var
Thank you Jeff and All,
Within a given time period (say 700 days, from the start day), I am
expecting measurements taken at each time interval;. In this case "0" means
measurement taken, "1" not taken (stopped or opted out and " -1" don't
consider that time period for that individual. This will be compared with
the actual measurements taken (Observed-
2017 Jun 04
0
New var
Since the number of choices is small (6), how about this?
Starting with Jeff's initial DFM:
DFM <- structure(list(obs = 1:6, start = structure(c(16467, 14710, 13152,
13787, 15126, 12696), class = "Date"), end = structure(c(17167,
14975, 13636, 13879, 15340, 12753), class = "Date"), D = c(700,
265, 484, 92, 214, 57), bin = structure(c(6L, 3L, 5L, 1L, 3L,
1L), .Label
2017 Jun 03
2
New var
Thank you all for the useful suggestion. I did some of my homework.
library(data.table)
DFM <- read.table(header=TRUE, text='obs start end
1 2/1/2015 1/1/2017
2 4/11/2010 1/1/2011
3 1/4/2006 5/3/2007
4 10/1/2007 1/1/2008
5 6/1/2011 1/1/2012
6 10/5/2004 12/1/2004',stringsAsFactors = FALSE)
DFM
DFM$D =as.numeric(difftime(as.Date(DFM$end,format="%m/%d/%Y"),
2017 Jun 04
0
New var
# read.table is NOT part of the data.table package
#library(data.table)
DFM <- read.table( text=
'obs start end
1 2/1/2015 1/1/2017
2 4/11/2010 1/1/2011
3 1/4/2006 5/3/2007
4 10/1/2007 1/1/2008
5 6/1/2011 1/1/2012
6 10/5/2004 12/1/2004
',header = TRUE, stringsAsFactors = FALSE)
# cleaner way to compute D
DFM$start <- as.Date( DFM$start, format="%m/%d/%Y" )
DFM$end
2012 Jun 11
3
Simple Binning of Values
Hello
I am very new to R. I have an R task to complete that I have not been able to find a straightforward answer to as of yet. I have a list of values. I would like to count the number of values that are in one bin, the number that fall in the next bin, etc.
For example
My input file is: 123 48 342 442 43 232 32 129 191 147
I would like the output to be similar to:
0-100 3
100-200 4
2003 Apr 22
4
fisher exact vs. simulated chi-square
Dear All,
I have a problem understanding the difference between the outcome of a
fisher exact test and a chi-square test (with simulated p.value).
For some sample data (see below), fisher reports p=.02337. The normal
chi-square test complains about "approximation may be incorrect",
because there is a column with cells with very small values. I
therefore tried the chi-square with
2009 Oct 14
2
Survival and nonparametric
Hi all,
Has any body the exprience to iclude a nonparametric component into the
survival analysis using R
package? *Can someone recommend *me * some ** references? *
Thanks a lot
Ashta
[[alternative HTML version deleted]]
2000 Apr 04
2
Hierarchical Regression
Howdy!
I'm a clinical psychologist desperately trying to get rid of SPSS. I
just discovered R and like it quite a lot. The main reason why we're
still using SPSS is the hierarchical regression where you enter
bundles of variables into a linear model and get an R-sqare increase
tested with an F-test. I already found add1 and drop1 but would
rather need addn and dropn. Is there
2006 May 08
1
Panel Data Estimators (within, between, Random Effects estimator)
Dear R Users,
Here is another probelm/question.
I would like to run some panel regressions with R. Therefore I have
combined several time periods of data for different individuals in my
database.
I have already run pooled OLS but I would need to calculate a Fixed
Effects Estimator (within estimator). Unfortunately I couldn't find
anything like that in the RSearch and I suppose that lme
2008 Aug 23
1
Adding new Hard disk to server with RAID-5
Hi all,
I have Dell 2950 III with RAID-5 installed and managed by hardware Raid
controller, I also use LVM when install CentOS. Now I get more 03 Hard
disk and I would like to add it in to the running system. My question is:
1) if new hard disks add in to the machine, I have to rebuild the RAID
volume with RAID management (raid controller) and the volume will be
expanded, but is that make
2007 Feb 28
1
On PostScript
I have been attempting to create a custom fax cover sheet for a hylafax
web front end called avantfax. It requires as input an encapsulated
postscript file conaining the glyph definitions and the text to be
subsituted as strings having the form XXXX-to-variable or
XXXX-from-variable.
I have been trying to create a valid eps file using a varitiy of methods
with no great succes. However, I ahve
2006 Mar 12
1
how to load files from a directory?
Hello.
I have a lot of files that contain tables of data in a directory.
I want to do the following in R but I don't know how:
for i in 1 to the number of files
{
table[i]=read.table(file="file i")
}
The dimension of each table is different. All of these are tables of two
dimensions.
My first problem is to put all the file names in a table.
Next, how I can load them using the
2015 Jul 25
2
Looking for mkdosfs for Syslinux 1.67
Thank you all very much!!
~Pat
2004 Jan 07
2
questions
Hi,
I have a samba server running on Linux (RedHat 9.0), with the security set to user and 3 valid user IDs. The clients are 3 PCs running on Windows XP (HomeEdition) and connected through a router. From the PCs running Windows I can see the localhost (Sambas Server), but for some reason one PC can only connect to the share directory on the Samba Server. The questions are as follows.
1. Should
2002 Sep 03
1
t(xmat)
Hi,
I have a matrix and time series "xmat". I have no problem executing any matrix functions except t(xmat) which gives the following error message. My question if "xmat" is a matrix why I can not execute this matrix function?? converting the time series and matrix into a data frame solves the problem
>dim(xmat)
[1] 98 7
> t(xmat)
Error in "tsp<-"(*tmp*,
2003 Jun 25
2
within group variance of the coeficients in LME
Dear listers,
I can't find the variance or se of the coefficients in a multilevel model
using lme.
I want to calculate a Chi square test statistics for the variability of the
coefficients across levels. I have a simple 2-level problem, where I want to
check weather a certain covariate varies across level 2 units. Pinheiro
Bates suggest just looking at the intervals or doing a rather
2006 May 16
1
:conditions on has_one realationship
Hi there,
I''m currently building a membership application and I want to be able
to select, not just all the memberships, but the most current
membership from the database on a per user basis. I have linked the
tables as shown:-
class Membership < ActiveRecord::Base
belongs_to :payment
belongs_to :person
end
class Person < ActiveRecord::Base
has_many :memberships
2005 Apr 15
0
code for index of canor analysis
i have search the web and not find code to cal these index.so i write one.if there exists code for such index,i hope you can let me know.
this is my first R code.i send the the list and hope uesRs give me some advise for improve it or check if i make any mistake . i appriciate your suggestion .
i have check the result roughly to the SPSS's. though i do not know excatly how SPSS calculate the
2023 Feb 20
2
Gluster 11.0 upgrade
Hi again Xavi,
I did some more testing on my virt machines
with same setup:
Number of Bricks: 1 x (2 + 1) = 3
If I do it the same way, I upgrade the arbiter first,
I get the same behavior that the bricks do not start
and the other nodes does not "see" the upgraded node.
If I upgrade one of the other nodes (non arbiter) and restart
glusterd on both the arbiter and the other the arbiter