Displaying 20 results from an estimated 1000 matches similar to: "Problem with sample function"
2012 Aug 07
2
Error using ddply inside user-defined function
Hi All,
I *think* it's ddply because the function recognizes vr1, etc, in other
parts of the function.
Here's some code:
# create dataset
PROV.PM.FBCTS <- c(0.00 ,0.00, 33205.19, 25994.56, 23351.37, 26959.56
,27632.58, 26076.24, 0.00, 0.00 , 6741.42, 18665.09 ,18129.59 ,21468.39
,21294.60 ,22764.82, 26076.73)
FBCTS.INV.TOT <- c(0 , 0, 958612, 487990, 413344, 573347,
2007 Apr 03
2
HPDinterval problem
Hi,
Can anyone tell me why I am not getting the correct intervals for
fixed effect terms for the following generalized linear mixed model
from HPDinterval:
> sessionInfo()
R version 2.4.1 (2006-12-18)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
2007 Apr 03
1
lmer, CHOLMOD warning: matrix not positive definite
Hi,
I am getting a warning message when I am fitting a generalized linear
mixed model (m1.2 below).
CHOLMOD warning: matrix not positive definite
Error in objective(.par, ...) : Cholmod error `matrix not positive
definite' at file:../Supernodal/t_cholmod_super_numeric.c, line 614
Any idea?
Thanks for your help,
Reza
> sessionInfo()
R version 2.4.1 (2006-12-18)
i386-pc-mingw32
2012 Nov 09
5
using lapply with recode
Hello:
Forgive me, this is surely a simple question but I can't figure it out, having consulted the help archives and "Data Manipulation With R" (Spector).
I have a list of 11 data frames with one common variable in each (prov). I'd like to use lapply to go through and recode one particular level of that common variable.
I can get the recode to work, but it only returns the
2012 Dec 10
3
Warning message: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!
Hi there
I'm trying to fit a logistic regression model to data that looks very similar to the data in the sample below. I don't understand why I'm getting this error; none of the data are proportional and the weights are numeric values. Should I be concerned about the warning about non-integer successes in my binomial glm? If I should be, how do I go about addressing it?
I'm
2008 Feb 16
2
NoMethodError... but its not a method!
Hi everyone,
I am putting together an application in which each part of it was
tested individually. Now that it is put together, I''m having problems...
The one giving me problems is my "ImportController" which parses a CSV
during post and puts it into my database. I have two separate CSV upload
actions (one is for a bill called "bes" and the other from the provider
2008 Oct 23
1
code works in R desktop but not iin RWeb - I got it working
Hi,
I got this working. i had to get rid of an underscore in one of my
variable names to work on RWeb.
Thanks for your help though!!
Natalie
__________________
I think you have to be either honest or careful, since the code you
submitted to Rweb is different with your former code! Why the
condition was changed from "test<-subset(X, GRADE == 7 & Y_Q10A < 9)"
to
2011 Jan 20
5
context problem
Hello list,
Asterisk 1.6.16.1
I have the following registrations :
register => 119909:passwd at sip.prov.org/52525252
register => 119909:passwd at sip.prov.org/59595959
[119909]
type=friend
host=sip.prov.org
username=119909
defaultuser=119909
secret=passwd
context=TRUNKin
extensions.conf :
[TRUNKin]
exten => _52525252,1,NoOp(context TRUNKin - 52525252)
exten =>
2007 Apr 26
4
select if + other questions
Hi,
i am trying to read a .txt file, do a couple of select if statements on my
data, and then finally use the ?table function to get frequency counts on
the data. Specifically, i am looking at answering the following question:
What is the frequency of Grade 7 students in the province of Alberta who
are smokers?
I am having some problems:
1)i cannot get the column names to show up when print
2010 Nov 23
2
Question about list function
Dear List I'm a newbie R user.
I'm utilizing the list function in order to make a var like this:
clusters<-list(a=var1,b=var2....) My problem is that the total numer of
variables that I need to include in my list is up to 200. I've the text
string with the complete list of my variables but is too long to cut and
paste in my bash shell.
So is there a way too import the list from a
2008 Oct 21
3
code works in R desktop but not iin RWeb - How do I modify to get it working in RWeb, please?
Hi,
How are you? I have a quick question.... I have code that works perfectly
with R desktop, but does not work with RWeb. Could you please tell me how
to modify the code below so it will work with RWeb?
#Read in txt file
happyguys<-read.table("c:/test8.txt", header=TRUE, row.names=1)
#Subset the txt file to only include certain values
test<-subset(happyguys, GRADE == 7
2012 Oct 30
3
nombres con NA
Estimados compañeros tengo el siguiente problema: quiero poner etiqueta
a los valores de una variable. He creado una lista que se llama geren
que tiene 194 valores distintos. Creo la siguiente data.frame:
dg<-data.frame(c_autónoma=names(tca)[sb7$ca],prov=names(cprov)[sb7$prov],geren=names(geren)[sb7$gerencia])
sb7$gerencia tiene 107 códigos distintos incluidos dentro de los códigos
de
2013 May 27
1
Question about subsetting S4 object in ROCR
Dear list
I'm testing a predictor and I produced nice performance plots with ROCR
package utilizing the 3 standard command
pred <- prediction(predictions, labels)
perf <- performance(pred, measure = "tpr", x.measure = "fpr")
plot(perf, col=rainbow(10))
The pred object and the perfo object are S4
with the following slots
An object of class "performance"
2012 Jun 15
1
Sugeestion about tuning of SVM
Dear list
I've a generic question about how to tune an SVM
I'm trying to classify with caret package some population data from a
case-control study . In each column of my matrix there are the SNP
genotypes , in each row there are the individuals.
I correctly splitted my total dataset in training(132 individuals) and test
(50 individuals) (respecting the total observed genotypic
2007 Apr 27
5
weight
Hi,
I have the file below called happyguys. It is a subset of data. How do I
apply the weight variable (WTPP) to this file? Can i just multiply each
column (except the first column because it is a record id) by WTPP? If the
answer is yes, how do I multiply one variable name by another?
Thanks,
Nat
PROV REGION GRADE Y_Q10A WTPP
83 48 4 7 2 342233324020
115
2012 Jun 14
1
Question about sampling
Dear list I wish to extract from a population genotypized for 10 SNP a
subsample of the same population of size n with similar allele frequencies.
Essentially i have a matrix of 200 rows (df) like this
Name,Condition,rs1385699_X,rs6625163_X,rs962458_X,Rs4658627_1,
sample01,Case,1,1,1,-1
sample02,Control,1,1,1,1
sample06,Control,1,-1,1,0
sample10,Case,1,1,1,0
sample11,Control,1,1,1,1
2012 May 23
2
Special characters in an R package manual
Dear all,
I have some trouble with special characters while building my R package. I
tried to follow the usual LATEX format, but could not fix the problem:
For instance, for "greater than or equal", I tried "\geq", but R says that
this is an unknown macro.
Could anyone direct me how to solve this issue?
Best
Ozgur
-----
************************************
Ozgur ASAR
2012 May 27
7
Customized R Regression Output?
Hello R-Experts,
I am facing the problem that I have to estimate several parameters for a lot
of different dependent variables.
One single regression looks something like this:
y = beta0 + beta1 * x1 + beta2 * x2 + beta3 * x1 * x2 + beta4 * x4 + beta5 *
lag(x4,-1)
where y is the dependent variable and xi are the independent ones. Important
to me are the different estimates of betai and their
2012 May 31
2
Loop question
Hello,
I have a dataframe (Lx) with 5 Lb, and 5 Lw variables. I want to
create several variables according to the loop presented below (data
attached).
Lx <- read.csv("Lx.csv", header=T, sep=",")
for (i in 1:20) {
Lx$sb1[i] <- Lx$Lb1[i+1]/Lx$Lb1[i]
Lx$sb2[i] <- Lx$Lb2[i+1]/Lx$Lb2[i]
Lx$sb3[i] <- Lx$Lb3[i+1]/Lx$Lb3[i]
Lx$sb4[i] <-
2008 Dec 04
2
Round four: Re: code review req: 6750659 drti.o crashes app due to corrupt environment
I believe that I have incorporated all of the feedback given
(thanks!). Changes since the 2008-11-16 version include:
- ksh style & coding standards compliance in test script (Roland)
- "dof_init_debug == B_FALSE" vs. "!dof_init_debug" (Adam)
The updated webrev is at:
http://cr.opensolaris.org/~mgerdts/6750659-2008-12-03/
--
Mike Gerdts
http://mgerdts.blogspot.com/