similar to: Error when naming rows of dataset

Displaying 20 results from an estimated 900 matches similar to: "Error when naming rows of dataset"

2006 Oct 25
1
Incorrect 'n' returned by survfit()
I've a data set with 60000 rows of data representing 6000+ distinct loans. I did a coxph() regression on it (see call below), but a subsequent survfit() call on the coxph object is almost certainly wrong. It gives n=6 when it should be more like 6000+ (I think) > survfit(resultag) Call: survfit.coxph(object = resultag) n events median 0.95LCL 0.95UCL 6 489 Inf
2006 Oct 23
0
Construction of Dataset for time varying COXPH analysis
Question: When survfit() function is used upon a coxph object, the 'n' returned is vastly smaller (n=6) than the number of distinct loans in the dataset used. I am trying to estimate a Cox proportional hazards model for a set of loans (over 6000) using using time varying covariates. For this 6000+ loans, I have some 62,000 different vectors representing the loans at different periods of
2006 Nov 07
1
Extracting parameters for Gamma Distribution
I'm doing a cox regression with frailty: model <- coxph(Surv(Start,Stop,Terminated)~ X + frailty(id),table) I understand that model$frail returns the group level frailty terms. Does this mean this is the average of the frailty values for the respective groups? Also, if I'm fitting it to a gamma frailty, how do I extract the rate and scale parameters for the different gamma
2011 Oct 09
1
sapply(pred,cor,y=resp)
Hello. I am wondering why I am getting NA for all in cors=sapply(pred,cor,y=resp). I suppose that each column in pred has NAs in them. Is there some way to fix this? Thanks > str(pred) 'data.frame':   200 obs. of  13 variables:  $ mnO2: num  9.8 8 11.4 4.8 9 13.1 10.3 10.6 3.4 9.9 ...  $ Cl  : num  60.8 57.8 40 77.4 55.4 ...  $ NO3 : num  6.24 1.29 5.33 2.3 10.42 ...  $ NH4 : num  578
2011 Dec 10
3
Overlaying density plot on forest plot
Dear R User, Please, I am new to R. I want to overlay density plot for predictive interval pooled result in meta-analysis. http://addictedtor.free.fr/graphiques/graphcode.php?graph=114 Regards Frank Peter
2010 Aug 24
3
generate random numbers from a multivariate distribution with specified correlation matrix
Hi all, rmvnorm()can be used to generate the random numbers from a multivariate normal distribution with specified means and covariance matrix, but i want to specify the correlation matrix instead of covariance matrix for the multivariate normal distribution. Does anybody know how to generate the random numbers from a multivariate normal distribution with specified correlation matrix? What about
2007 Feb 19
3
summary polr
Hi all, I have a problem to estimate Std. Error and t-value by ?polr? in library Mass. They result from the summary of a polr object. I can obtain them working in the R environment with the following statements: temp <- polr(formula = formula1, data = data1) coeff <- summary(temp), but when the above statements are enclosed in a function, summary reports the following error:
2003 Oct 09
3
Specifying suitable PC to run R
If I am buying a PC where the most compute intensive task will be running R and I do not have unlimited resources what trade-offs should I make? Specifically should I go for 1 - more memory, or 2 - faster processor, or 3 - something else? If it makes a difference I shall be running Windows on it and I am thinking about getting a portable which I understand makes upgrading more difficult. Extra
2011 May 23
6
What are the common Standard Statistical methods used for the analysis of a dataset
Hi, Anybody know what are the common Standard statistical methods used for the analysis of a dataset,and anybody know which of these methods give similar results Ram [[alternative HTML version deleted]]
2011 Nov 30
3
Upgrading R on my EEE PC netbook
I have been successfully been using R on my EEE PC for some while now. Although it uses Xandros I have been able to install various pieces of software by pretending that it was Debian etch. Johannes was kind enough to continue providing binaries on CRAN for a while but I think I am the only person still living in the past as CRAN etch is currently stuck at 2.11.0 and I cannot rely on him to
2006 Nov 16
3
Newbie problem ... Forest plot
Hello! I have some data stored into 2 separate csv file. 1 file (called A.csv) (12 results named Group1, Group2, Group3, etc...) odds ratios, 2 file (called B.csv) 12 corresponded errors. How to import that data into R and make forest plot like I saw inside help file Rmeta and meta with included different font colors and names trough X and Y axis. I know for meta libb ... out <-
2014 May 18
2
Writing my first CRAN vignette
In fact my first vignette full stop. I am intending to use Sweave. I have read the Sweave documentation and section 1.4 of the extensions manual and apart from (a) do not use split = TRUE (b) and include all the source components, there does not seem to be anything CRAN specific. 1 - Am I missing some other documentation? 2 - If I use a package from CTAN would that be considered within the
2006 Nov 23
2
random effect question and glm
consider p as random effect with 5 levels, what is difference between these two models? > p5.random.p <- lmer(Y ~p+(1|p),data=p5,family=binomial,control=list(usePQL=FALSE,msV=1)) > p5.random.p1 <- lmer(Y ~1+(1|p),data=p5,family=binomial,control=list(usePQL=FALSE,msV=1)) in addtion, I try these two models, it seems they are same. what is the difference between these two model. Is
2012 Dec 14
1
Beta-coefficients for ZINB model
Dear users, Does anyone have any idea how to generate standardised beta coefficients for a ZINB model in R to compare which explanatory variables are having the greatest impact on the dependent variable? Thanks, Jeremy [[alternative HTML version deleted]]
2013 Aug 30
2
Packaging
Hi, I have a problem when I try to generate the Documentation pdf (from .rda files)in Spanish during the package creation. Could you tell me the way I can do it?. Thanks in advance. Regards. Eva [[alternative HTML version deleted]]
2012 Apr 25
1
calculate correlation effect size using contrast analysis for an omnibus Chi-square test statistic
I am looking for an R package with which one can calculate an effect size for a set of contrasts given an omnibus chi-square test statistic (more than 1 degree of freedom). Is there such a package? Presumably, it would implement the procedure (or something like it) described by Roznow and Rosenthal 1996 Psychological Methods 1: 331-340. many thanks! Steven Orzack Fresh Pond Research Institute
2006 Jan 04
1
How to create a correlation table for categorical data???
Hi, I need to create the correlation table of a set of categorical data (sex, marital_status, car_type, etc.) for a given population. Basically what I'm looking for is a function like cor( ) working on factors (and, if possible, considering NAs as a level). To better express myself, the manual way should be: 1) to create a set of n-1 numeric dummies (whose assigned values are
2011 Nov 03
4
How much data can R process?
Would like to know how much data can R process - number of rows and columns? [[alternative HTML version deleted]]
2012 Jan 11
1
meta-analysis normal quantile plot metafor
Hello, I once used the metawin software to perform a meta-analysis (see metawinsoft, Rosenberg et al.) and produced normal qqplot to test for a potential bias in the dataset. I now want to re-use the same dataset with the package metafor by W. Viechtbauer (great package btw). I run the qqnorm.rma.uni function. I use standardized effect sizes as in metawin. QQplot generated with metafor differs
2012 Jan 20
1
Point biserial correlation => Is there any specific command or could I just use cor.test?
Hello, I found in the forum two threads about point biserial correlation. One of them (1) mentioned "a point-biserial correlation is just a Pearson correlation where one of the variables is dichotomous. Thus, the command is just the normal cor function". The other (2) mentioned "Professor Fox's package polycor" as a way to calculate point biserial correlation?