search for: mypr

Displaying 8 results from an estimated 8 matches for "mypr".

Did you mean: mtpr
2010 Oct 01
0
Populating values in a PowerPoint table
...a data frame, but the excel object is not nearly as nice looking and easy to manipulate (and apply templates to) as an actual PowerPoint table. I'd appreciate any help I can get. Thanks! -Saar Sample code to create the presentation and the table: require(R2PPT) # initialize the presentation myPres<-PPT.Init(visible=TRUE) # create title slide myPres<-PPT.AddTitleSlide(myPres,title="Fancy Title",subtitle="Fancy SubTitle") # create and select a table slide myPres$Current.Slide <- comInvoke(comGetProperty(myPres$pres, "Slides"),"Add", comGetPr...
2011 Mar 02
0
R2PPT - Insert data.frame
...t even the example works for me: ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14) trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69) group <- gl(2,10,20, labels=c("Ctl","Trt")) weight <- c(ctl, trt) my.df<-data.frame(weight=weight,group=group) myPres<-PPT.Init(visible=TRUE) myPres<-PPT.AddBlankSlide(myPres) myPres<-PPT.AddDataFrame(myPres, df = my.df,row.names=FALSE,size=c(30,100,100,300)) myPres<-PPT.Present(myPres) It adds the table but doesn't even recognize the columns. I would appreciate any tip, tutorial or example. I...
2011 Feb 25
4
salidas en Power Point
Hola tengo q hacer un trabajo, donde me piden q todas las salidas q haga sean en Power Point (graficos, tablas, etc). Para eso habia empezado a leer algo del paquete R2PPT, pero la verdad es q hay cosas q no entiendo de este paquete. Queria saber si alguien estuvo trabajando con el y obtuvo buenos resultados o si han usado otro paquete para hacerlo. Por ultimo una pregunta: desde Sweave se
2006 Dec 14
2
xyplot: discrete points + continuous curve per panel
...a, panel = function(x,y) { panel.xyplot(x, y) panel.superpose(???) # Needs more here } ) I also like to plot on each panel (there is one Subj per panel) a continuous curve with predictions that I can calculate from a rather complicated function: myPred <- (time, subj, dose) { returns predicted value of Conc for a given time, subj and dose } The predicted curves are different for each panel. How do I plot the predictions? I have tried to add panel.superinpose in the xyplot portion but can't link to the myPred function. I also kno...
2011 Mar 23
1
Corrupt trees
...ining data is sampled randomly from the complete data set. The "copy-pasted" code below illustrates: > data <- load.data() > mytree <- run.tree(data) > mypred <- gen.predictions(mytree, data ) Error in pred1.tree(object, tree.matrix(newdata)) : corrupt tree...
2011 Feb 12
2
Predictions with missing inputs
...#fit some linear model to random data x=matrix(rnorm(100*3),100,3) y=sample(1:2,100,replace=TRUE) mydata <- data.frame(y,x) mymodel <- lm(y ~ ns(X1, df=3) + X2 + X3, data=mydata) summary(mymodel) #create new data with 1 missing input mynewdata <- data.frame(matrix(rnorm(100*2),100,2)) mypred <- predict(mymodel, mynewdata) Thanks in advance for your help! Axel. [[alternative HTML version deleted]]
2012 Jan 02
1
calibration curve for glmnet object
Hi, I created a logistic regression model using the glmnet package. This model is of class "glmnet" or "lognet". I wanted to plot a calibration curve for this model using the calibrate() function from rms package, but the objects used are different, rms requires a fit from lrm(). Is there another function for getting the calibration plot for this glmnet object, or can anyone
2004 Sep 23
0
followup: Re: Issue with predict() for glm models
Could you just use lines(newX, myPred, col=2) -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Paul Johnson Sent: Thursday, September 23, 2004 10:3 AM To: r help Subject: followup: Re: [R] Issue with predict() for glm models I have a follow up question th...