[R] Linking in R package documentation

2009-08-09 Thread Rebecca Sela
I have two straightforward questions about linking in the man pages for R packages: First, is it possible to link from within parts of the documentation that are not the \seealso section? For example, I would like to have something like: \arguments{ \item{correlation}{an optional \code{corStr

Re: [R] \dQuote in packages

2009-07-13 Thread Rebecca Sela
ould I be using here? Thanks again! Rebecca - Original Message ----- From: "Uwe Ligges" To: "Rebecca Sela" Cc: "r-help" Sent: Friday, July 10, 2009 8:17:44 PM GMT -05:00 US/Canada Eastern Subject: Re: [R] \dQuote in packages Rebecca Sela wrote: >

Re: [R] \dQuote in packages

2009-07-10 Thread Rebecca Sela
ted to the target variable)} } \references{Sela, Rebecca J., and Simonoff, Jeffrey S., \dQuote{RE-EM Trees: A New Data Mining Approach for Longitudinal Data}.} \keyword{datasets} Thanks again for your help! Rebecca - Original Message - From: "Uwe Ligges" To: "Rebecca

Re: [R] \dQuote in packages

2009-07-08 Thread Rebecca Sela
w to assemble a package in Windows.) Thank you for your help! Rebecca - Original Message - From: "Uwe Ligges" To: "Rebecca Sela" Cc: "r-help" Sent: Wednesday, July 8, 2009 6:11:33 PM GMT -05:00 US/Canada Eastern Subject: Re: [R] \dQuote in packages The d

[R] \dQuote in packages

2009-07-08 Thread Rebecca Sela
I am in the process of submitting a package to CRAN. R CMD check ran successfully on the package on my local computer, using R version 2.1.1. However, on the computers for CRAN (with version 2.10.0), the following errors occurred: Warning in parse_Rd("./man/predict.Rd", encoding = "unknown")

[R] Problems with subsets in NLME

2009-06-25 Thread Rebecca Sela
this list as well.) Thank you! Rebecca -- Rebecca Sela IOMS/Statistics Group Stern School of Business New York University __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-pro

[R] No CHM file

2009-06-03 Thread Rebecca Sela
I just built a package in R (version 2.1.1 on a Linux machine) and then moved it to my computer (R version 2.8.1 on a Windows machine). When I loaded the package and tried to open help for one of the commands, I got the following warning: Warning message: In print.help_files_with_topic("F:/R/R

[R] "Error: package/namespace load failed"

2009-05-27 Thread Rebecca Sela
I am writing my first R package, and I have been getting the following series of errors when I run R CMD check: * checking S3 generic/method consistency ... WARNING Error: package/namespace load failed for 'REEMtree' Call sequence: 2: stop(gettextf("package/namespace load failed for '%s'", libra

Re: [R] Checking a (new) package - examples require other package functions

2009-05-16 Thread Rebecca Sela
FALSE, domain = NA) 1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose = FALSE) Execution halted I have attached the NAMESPACE file in case that is where the problem is. Thanks again for your help! Rebecca - Original Message - From: "Duncan Murdoch" To: &quo

[R] Checking a (new) package - examples require other package functions

2009-05-13 Thread Rebecca Sela
I am creating an R package. I ran R CMD check on the package, and everything passed until it tried to run the examples. Then, the result was: * checking examples ... ERROR Running examples in REEMtree-Ex.R failed. The error most likely occurred in: > ### * AutoCorrelationLRtest > > flush(stde

[R] DLM and matrices with 0 eigenvalues

2009-02-19 Thread Rebecca Sela
I am using DLM to fit a state space model. The covariance matrix of states (W) is given by: a 0 a 0 0 0 0 0 a 0 a 0 0 0 0 0 where a is a parameter to be estimated. Even though the matrix is positive semidefinite, sometimes DLM gives me an error that W is not a valid variance matrix. As far as

[R] Three questions about DSE

2009-02-05 Thread Rebecca Sela
case with the attached code.) Is there a known reason why this sometimes occurs? Thank you in advance for all of your help! Rebecca -- Rebecca Sela Doctoral Candidate Statistics Group/IOMS Stern School of Business__ R-help@r-project.org mailing list

[R] LME prediction - object not subsettable?

2008-09-06 Thread Rebecca Sela
I fit a random effects linear model to data, and then tried to use it to predict, but I got this error: > predict(lmeObject, newdata, level=0) Error in eval(mCall$fixed)[-2] : object is not subsettable This is a new error for me. It still occurs if I change the level to 1 or if I change the dat

[R] "False convergence" in LME

2008-06-13 Thread Rebecca Sela
I tried to use LME (on a fairly large dataset, so I am not including it), and I got this error message: Error in lme.formula(formula(paste(c(toString(TargetName), "as.factor(nodeInd)"), : nlminb problem, convergence error code = 1 message = false convergence (8) Is there any way to get mo

[R] Predicting a single observatio using LME

2008-06-06 Thread Rebecca Sela
When I use a model fit with LME, I get an error if I try to use "predict" with a dataset consisting of a single line. For example, using this data: > simpledata Y t D ID 1 -1.464740870 1 0 1 2 1.222911373 2 0 1 3 -0.605996798 3 0 1 4 0.155692707 4 0 1 5 3.849619772 1 0

[R] Extracting variables from random effects formulas

2008-05-28 Thread Rebecca Sela
I would like to be able to extract the names of the variables in a formula that specifies random effects. For example, given: random = ~ 1+year | st_name I'd like to be able to get "year" and "st_name" out of random. Neither terms(random) nor random[2] seems to work. Is there a way to get vari

[R] NLMINB convergence codes

2008-01-28 Thread Rebecca Sela
According to the R documentation for NLMINB, the returned value of convergence is 0 for successful convergence. When I got another code (1), I looked up the PDF that linked from the documentation (http://netlib.bell-labs.com/cm/cs/cstr/153.pdf), which said that a return code under 3 was imposs

[R] NaN as a parameter in NLMINB optimization

2007-12-20 Thread Rebecca Sela
-- Rebecca Sela Statistics Department/IOMS Stern School of Business New York University __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

[R] Disentagling formulas

2007-10-01 Thread Rebecca Sela
ing like Y <- formula$Y newY <- f(Y) lm(newY~X1+X2+X3) So far, it seems that my only option will be a very complicated sequence of steps involving match.call(). Is there a simpler way to change the response variable in a formula? Thanks in advance! Rebecca -- Rebecca S