Quantcast
Channel: The Stata Blog - Latest Comments
Browsing all 1125 articles
Browse latest View live

Re: Export tables to Excel

Where are you saving the file corr.xlsx? Make sure you have permission to save to the directory in question.

View Article


Re: Export tables to Excel

Using putexcel in a loop, I am trying to add data across columns. I understand how to post data down rows. My syntax was:local row 5foreach var of varlist *_high{sum `var'putexcel set "column.xls",...

View Article


Re: How to successfully ask a question on Statalist

Hello,I am working on national household survey data. I constructed the consumption aggregate and estimated the per capita consumption per annum. The entire dataset is household level data. The data is...

View Article

Re: Retaining an Excel cell’s format when using putexcel

Does this work for conditional formatting in MS Excel files as well? And if we wanted to populate an MS Excel file in a sheet that is hidden and/or locked would that be possible? For example, if we...

View Article

Re: Using Stata’s random-number generators, part 1

please, help me to analyse by data using mixed logit

View Article


Re: Merging data, part 2: Multiple-key merges

I think you used the wrong picture for testing by division -- it shows code identical to testing division-date

View Article

Re: Using Stata’s SEM features to model the Beck Depression Inventory

The comments are from this presentation )(http://www.stata.com/meeting/s...Conference San Diego 2012. There were some errors related to the discussion of the 2PL and 3PL model as well as some omissions...

View Article

Re: Fitting ordered probit models with endogenous covariates with...

This is very useful information shared here. I amreally thankful for this. 99th.co.in

View Article


Re: Using import excel with real world data

Have you tried using the GUI to import your data?

View Article


Re: Retaining an Excel cell’s format when using putexcel

You can use putexcel to populate the data, but not to control cell formatting (hiding/locking/conditional formatting).

View Article

Re: Export tables to Excel

You can use the undocumented mata function numtobase26() to get the Excel column names. For example,. local i = 1. mata:st_local("col_num", numtobase26(strtoreal(st_local("i")))). di "`col_num'"A

View Article

Re: Retaining an Excel cell’s format when using putexcel

This looks like a very handy command...with one drawback - it doesnt seem to work on data. I construct results tables in Stata to the side of my actual data, then use export excel..., sheetreplace. In...

View Article

Re: Export tables to Excel

Hi Kevin! Thanks for bringing putexcel to our attention; I have often wondered if a command like this is available. Thanks even more for writing tab2xl - this addresses my needs even more specifically,...

View Article


Re: Using resampling methods to detect influential points

Steve Samuels pointed out that this post refers to the unstandardizeddfbeta values. We compute unstandardized dfbeta values, for example, when we use the -predict- command after -stcox-. On the other...

View Article

Re: Understanding matrices intuitively, part 1

x = (0.75\0.25) represents an arrow pointing from the origin,(0,0),to the point (0.75,0.25). scatteri `x1' `x2' should be scatteri `x2' `x1'

View Article


Re: Export tables to Excel

If the field you are tabulating, "operator" is a string variable then you will need to encode the variable before running the command.Ex:encode operator, generate(operator2)tab2xl operator2, using...

View Article

Re: Fitting ordered probit models with endogenous covariates with...

The Stata download cmp allows you to estimate various limited dependent variable models with endogenous covariates. Its great.

View Article


Re: Understanding matrices intuitively, part 2, eigenvalues and eigenvectors

I have two questions:1. Lets say Ax = y, after transform what happens to the points whichdoesn't lie on eigen axes? If the point lies on eigen axes then themaximum values after transform depends on the...

View Article

Re: How to create animated graphics using Stata

At the 2012 UK Stata User Group Meeting Robert Grant demonstrated how to create animated graphics from within Stata ...- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Following Sergiy...

View Article

Re: Export tables to Excel

Rob, ds is correct. -tab2xl- does not work with string variables.

View Article
Browsing all 1125 articles
Browse latest View live