[R] post new question

2020-03-18 Thread olivia mah
Hi, I am interested in running sensitivity analysis (variance-based). But instead of running Monte Carlo simulations in R, I already have my sample data in two tables. So how do I run Sobol on my own data then? Does that mean that the model = null? And then to use tell()? I cannot find any exampl

[R] biglm and epicalc ROC curves

2010-11-10 Thread mah
Hello list, I am trying to avoid "Rifying" some of my SAS code to generate ROC plots, and the logistic.display() and lroc() functions in the epicalc package do what I want. However, I must generate my logistic model with bigglm because I have 1) limited hardware, 2) ~2.5 million rows, and 4 categ

[R] Assign Name of Data Frame

2010-02-12 Thread mah
Hello R Experts, How can I assign the name of a data frame with the argument of a function? Specifically I am using RODBC to build local dataframes from SAS datasets on a remote server. I would like the local dataframe have the same name as the source SAS dataset, and the function below is what

Re: [R] Line Plot with Dates on X-axis

2010-01-20 Thread mah
Thank you - zoo did exactly what I needed... On Jan 20, 12:20 pm, Henrique Dallazuanna wrote: > Try the zoo package: > > plot(as.yearqtr(time.val), inc, col = 'red', type = 'l') > > > > On Wed, Jan 20, 2010 at 3:41 PM, mah wrote: > > I am tryi

[R] Line Plot with Dates on X-axis

2010-01-20 Thread mah
I am trying to generate a line graph with quarterly time buckets (with nice labels) on the x-axis. The first block of code below will generate the graph with nicely formatted x-axis labels, but the "type=" and "col=" options are not recognized when factors are used for the x-axis. The second bloc

Re: [R] Building GUI for custom R application

2009-04-14 Thread mah
If the desired end-state is a regression model and the appropriate diagnostics, the Rcmdr package contains the necessary tools. Rcmdr is available for many Linux distribuitons as well as for Windows, and it is able to do much more than import-and-regress. I think the package was built from Tcl/Tk

[R] Weights and coxph

2008-06-13 Thread mah
I am confuse by the results of the weights option for coxph. I replicated each row three times from the help page for coxph in the data frame test_freq. I had expected that the coefficients, significance tests, and tests of non-proportionality would yield the same results for the replicated and

Re: [R] basehaz and newdata

2008-04-16 Thread mah
Survfit returns an "Error in temp[, 1] : incorrect number of dimensions" error message when I attempt to use newdata to validate my models. The syntax I am using is "sfit <- survfit(mod1, newdata=testd, individual=T)". The dataframe testd has two columns and 39 rows (see below). The rows are th

Re: [R] basehaz and newdata

2008-04-07 Thread mah
s and then derive/extract what you need. > > --Matt > > Matt Austin > Global Statistical Leader, denosumab PMO > Biostatistics Director > Amgen, Inc > > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of mah > Sent: Mo

Re: [R] basehaz and newdata

2008-04-07 Thread mah
t; Mike On Apr 7, 11:43 am, Roland Rau <[EMAIL PROTECTED]> wrote: > Hi, > > just looked at it briefly and I don't know if it is the real cause for > your problems. But 'data' as well as 'newdata' require a data.frame and > not a list

[R] basehaz and newdata

2008-04-07 Thread mah
I am unable to get the basehaz function to apply a proportional hazards model to a new data frame. I replicated my specific situation with the example for coxph in the help, where I changed the x value of the first record from 0 to 1. Is there something incorrect in the syntax that I am using? T